mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-12 07:42:56 +00: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:
parent
b913c8f453
commit
f4258298d3
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user