]> xenbits.xensource.com Git - libvirt.git/commitdiff
virtlogd: Fix a couple minor memory leaks
authorCole Robinson <crobinso@redhat.com>
Sun, 10 Apr 2016 23:19:25 +0000 (19:19 -0400)
committerCole Robinson <crobinso@redhat.com>
Mon, 11 Apr 2016 11:32:57 +0000 (07:32 -0400)
https://bugzilla.redhat.com/show_bug.cgi?id=1303885

src/logging/log_daemon.c

index 68f0647638b3f76cc7854a03e61ad0b7e5c9c961..f674cbd51402f1fd0a9fca5503deb76a9014cc9a 100644 (file)
@@ -1212,6 +1212,8 @@ int main(int argc, char **argv) {
     VIR_FREE(sock_file);
     VIR_FREE(state_file);
     VIR_FREE(run_dir);
+    VIR_FREE(remote_config_file);
+    virLogDaemonConfigFree(config);
     return ret;
 
  no_memory: