Commits
e18a80a and
57e5c3c switched from a getenv wrapper which
does not allocate a string to virFileFindResource which does not,
without freeing it.
https://bugzilla.redhat.com/show_bug.cgi?id=
1116427
if (virNetClientAddProgram(client, *prog) < 0)
goto error;
+ VIR_FREE(daemonPath);
VIR_FREE(lockdpath);
return client;
error:
+ VIR_FREE(daemonPath);
VIR_FREE(lockdpath);
virNetClientClose(client);
virObjectUnref(client);
VIR_FREE(pkipath);
VIR_FREE(knownHostsVerify);
VIR_FREE(knownHosts);
+#ifndef WIN32
+ VIR_FREE(daemonPath);
+#endif
return retcode;