]> xenbits.xensource.com Git - people/dariof/libvirt.git/commitdiff
tests: Free test at the end of GetDeviceAliases JSON test
authorJiri Denemark <jdenemar@redhat.com>
Mon, 22 Jul 2013 12:56:21 +0000 (14:56 +0200)
committerJiri Denemark <jdenemar@redhat.com>
Mon, 22 Jul 2013 14:59:14 +0000 (16:59 +0200)
Commit 58b147ad07c9432b53e66ca20aff74d812647c57 added a test for
qemuMonitorGetDeviceAliases but forgot to free the test object at the
end which causes all sort of weird errors and failures when new tests
are added after the GetDeviceAliases.

tests/qemumonitorjsontest.c

index 4061a0cba91634d0b9ea80bad376a795e34cd1af..9e66059489e169ff021313ea257bfd17b6cb62dd 100644 (file)
@@ -938,6 +938,7 @@ testQemuMonitorJSONGetDeviceAliases(const void *data)
 
 cleanup:
     virStringFreeList(aliases);
+    qemuMonitorTestFree(test);
     return ret;
 }