]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virsh: don't call virSecretFree on NULL
authorJán Tomko <jtomko@redhat.com>
Fri, 29 Mar 2013 11:55:38 +0000 (12:55 +0100)
committerJán Tomko <jtomko@redhat.com>
Fri, 29 Mar 2013 12:00:49 +0000 (13:00 +0100)
commitbfb4b822579ce1afcbc396fe4bc3b57fb3ebc150
treef682ff64e7a851358dab31c6a5ce4df0438aacbc
parent2d73f2120f2073bff9e311626f6b6febcfc1e290
virsh: don't call virSecretFree on NULL

Since the refactoring in fbe2d49 we call virSecretFree even if
virSecretDefineXML fails, which leads to overwriting the error
message with:
error: Invalid secret: virSecretFree

Bug: https://bugzilla.redhat.com/show_bug.cgi?id=929045
tools/virsh-secret.c