[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

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



From: "Richard W.M. Jones" <rjones 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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]