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

[Libguestfs] [PATCH 08/14] daemon: Fix leak of strings in blkid (found by valgrind).



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

---
 daemon/blkid.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/daemon/blkid.c b/daemon/blkid.c
index ada2d7b..8728c29 100644
--- a/daemon/blkid.c
+++ b/daemon/blkid.c
@@ -188,7 +188,7 @@ blkid_with_p_i_opt (const char *device)
 
   free (out);
   free (err);
-  free (lines);
+  free_strings (lines);
 
   return ret;
 
@@ -196,7 +196,7 @@ error:
   free (out);
   free (err);
   if (lines)
-    free (lines);
+    free_strings (lines);
   if (ret)
     free_strings (ret);
 
-- 
1.7.6


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