]> git.ipfire.org Git - thirdparty/libvirt.git/commit
vmx: fix resource leak
authorStefan Berger <stefanb@linux.vnet.ibm.com>
Fri, 4 May 2012 14:42:09 +0000 (10:42 -0400)
committerCole Robinson <crobinso@redhat.com>
Thu, 14 Jun 2012 15:16:26 +0000 (11:16 -0400)
commit052ef069b11f89b385f4a82e27768a228ccb81db
tree81b68685cb5fdef7c7fc1b3609eed9d35fd60d4f
parent655d3b2b8740dd7bbcce2a742e47a9dc7a1a9e67
vmx: fix resource leak

Error: RESOURCE_LEAK:
/libvirt/src/vmx/vmx.c:2431:
alloc_fn: Calling allocation function "calloc".
/libvirt/src/vmx/vmx.c:2431:
var_assign: Assigning: "networkName" =  storage returned from "calloc(1UL, 1UL)".
/libvirt/src/vmx/vmx.c:2495:
leaked_storage: Variable "networkName" going out of scope leaks the storage it points to.

(cherry picked from commit 409a637eb1dc99ac1b85d3876302f876cb38a536)
src/vmx/vmx.c