diff mbox

virtlogd: Fix a couple minor memory leaks

Message ID d3b7edc84c274fb7b283f3253957e901bfb68a42.1460330530.git.crobinso@redhat.com
State Accepted
Commit cdced0128a45fb44c687325376311dabb1116324
Headers show

Commit Message

Cole Robinson April 10, 2016, 11:22 p.m. UTC
https://bugzilla.redhat.com/show_bug.cgi?id=1303885
---
 src/logging/log_daemon.c | 2 ++
 1 file changed, 2 insertions(+)

-- 
2.7.3

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list
diff mbox

Patch

diff --git a/src/logging/log_daemon.c b/src/logging/log_daemon.c
index 68f0647..f674cbd 100644
--- a/src/logging/log_daemon.c
+++ b/src/logging/log_daemon.c
@@ -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: