]> git.ipfire.org Git - thirdparty/libvirt.git/commit
tests: Call virCommandFree() in cleanup section
authorStefan Berger <stefanb@linux.vnet.ibm.com>
Fri, 26 Jul 2019 20:56:31 +0000 (16:56 -0400)
committerEric Blake <eblake@redhat.com>
Fri, 26 Jul 2019 21:32:29 +0000 (16:32 -0500)
commit9b4bc79549dc0e56dadedbf5a244e09fa598a2f2
tree293494b263b99fa9f31885c3de68bd0325197aa4
parentb8358f94e0ae5b7436bb056da03b342dd76b31fe
tests: Call virCommandFree() in cleanup section

Fix a potential memory leak by calling virCommandFree() in the cleanup
section.

Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
Reviewed-by: John Ferlan <jferlan@redhat.com>
Message-Id: <20190726205633.2041912-3-stefanb@linux.vnet.ibm.com>
tests/commandtest.c