mirror of
https://github.com/libvirt/libvirt.git
synced 2026-09-03 20:53:04 -05:00
tests: Free @fakerootdir in error path
Commit id 'dd9b29dad' added this new variable, but didn't free it in one instance where status was returned to the caller. Found by Coverity
This commit is contained in:
@@ -80,8 +80,10 @@ mymain(void)
|
||||
if (!abs_top_srcdir)
|
||||
abs_top_srcdir = abs_srcdir "/..";
|
||||
|
||||
if (qemuTestDriverInit(&driver) < 0)
|
||||
if (qemuTestDriverInit(&driver) < 0) {
|
||||
VIR_FREE(fakerootdir);
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
|
||||
driver.privileged = true;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user