]> git.ipfire.org Git - thirdparty/libvirt.git/commit
vbox: Resolve Coverity RESOURCE_LEAK
authorJohn Ferlan <jferlan@redhat.com>
Fri, 1 May 2015 11:28:25 +0000 (07:28 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Wed, 6 May 2015 00:02:36 +0000 (20:02 -0400)
commit74aab575c461467473233b041285e1db4eb6fd75
treefecd2600be5735a458b0475f392cf9d858c05954
parent11b91679549764702acdd19411b3784a8891108a
vbox: Resolve Coverity RESOURCE_LEAK

If the virStringSearch() returns a 0 (zero), then each of the uses
of the call will just jump to cleanup forgetting to free the returned
empty list. Expand the scope a bit of each use and free at cleanup.
src/vbox/vbox_common.c