[Libguestfs] [PATCH 13/14] daemon: Fix leaking error message (found by valgrind).

Richard W.M. Jones rjones at redhat.com
Tue Jan 24 17:02:27 UTC 2012


From: "Richard W.M. Jones" <rjones at redhat.com>

---
 daemon/md.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/daemon/md.c b/daemon/md.c
index f6dc603..41e2c75 100644
--- a/daemon/md.c
+++ b/daemon/md.c
@@ -327,5 +327,6 @@ do_md_stop(const char *md)
     free(err);
     return -1;
   }
+  free (err);
   return 0;
 }
-- 
1.7.6




More information about the Libguestfs mailing list