mirror of https://gitee.com/openkylin/libvirt.git
testutils: Don't leak @testBitmap and @failedTests
In virTestMain() the @failedTests bitmap is allocated and optionally @testBitmap too. But neither of them is freed. Fixes:0cd5a726e3
Fixes:cebb468ef5
Signed-off-by: Michal Privoznik <mprivozn@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
7d661d6e20
commit
77f7067059
|
@ -856,6 +856,9 @@ int virTestMain(int argc,
|
|||
fprintf(stderr, "Some tests failed. Run them using:\n");
|
||||
fprintf(stderr, "VIR_TEST_DEBUG=1 VIR_TEST_RANGE=%s %s\n", failed, argv[0]);
|
||||
}
|
||||
|
||||
virBitmapFree(testBitmap);
|
||||
virBitmapFree(failedTests);
|
||||
virLogReset();
|
||||
return ret;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue