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:
John Ferlan 2017-07-20 06:46:41 -04:00
parent b913c8f453
commit f4258298d3

View File

@ -80,8 +80,10 @@ mymain(void)
if (!abs_top_srcdir) if (!abs_top_srcdir)
abs_top_srcdir = abs_srcdir "/.."; abs_top_srcdir = abs_srcdir "/..";
if (qemuTestDriverInit(&driver) < 0) if (qemuTestDriverInit(&driver) < 0) {
VIR_FREE(fakerootdir);
return EXIT_FAILURE; return EXIT_FAILURE;
}
driver.privileged = true; driver.privileged = true;