]> git.ipfire.org Git - thirdparty/libvirt.git/commit
node_device: fix memory leak in nodeDeviceSysfsGetSCSIHostCaps
authorYi Wang <wang.yi59@zte.com.cn>
Fri, 26 May 2017 02:39:48 +0000 (22:39 -0400)
committerErik Skultety <eskultet@redhat.com>
Fri, 26 May 2017 11:16:36 +0000 (13:16 +0200)
commitd190424105ed9c0d376842f95ae64edc15b3d9e0
treeaf3215fd635e43c5bbf6e0202da3529fff9cf3d3
parent9f4c39f3099f7ecbccbc0be521d25ec6185cf2e3
node_device: fix memory leak in nodeDeviceSysfsGetSCSIHostCaps

@tmp is leaked after the second call to virVHBAGetConfig within
virVHBAIsVportCapable code block because it wasn't freed after making the
first call to the function.

Signed-off-by: Yi Wang <wang.yi59@zte.com.cn>
Signed-off-by: Erik Skultety <eskultet@redhat.com>
src/node_device/node_device_linux_sysfs.c