]> 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)
committerStefan Berger <stefanb@us.ibm.com>
Fri, 4 May 2012 14:42:09 +0000 (10:42 -0400)
commit409a637eb1dc99ac1b85d3876302f876cb38a536
tree758afca9ef296726a24517d1002d34b914a98afa
parent1cbe658bea22f24e9277cd01f6e1b45e2ff839a8
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.
src/vmx/vmx.c