[parted-devel] [PATCH] parted: plug memory leak

Petr Uzel petr.uzel at suse.cz
Wed May 26 12:10:04 UTC 2010


* parted/parted.c (_done_messages): free unit_msg
---
 parted/parted.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/parted/parted.c b/parted/parted.c
index edf3249..04d765c 100644
--- a/parted/parted.c
+++ b/parted/parted.c
@@ -2318,6 +2318,7 @@ static void
 _done_messages ()
 {
         free (flag_msg);
+        free (unit_msg);
         free (mkfs_fs_type_msg);
         free (mkpart_fs_type_msg);
         free (resize_fs_type_msg);
-- 
1.6.4.2


Petr

--
Petr Uzel
IRC: ptr_uzl @ freenode
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/parted-devel/attachments/20100526/72c0f873/attachment.pgp>


More information about the parted-devel mailing list