>From 35f62c2875dd568dfc0a88ea0e7b90e5f7d9ae78 Mon Sep 17 00:00:00 2001
From: Matt Davis <[EMAIL PROTECTED]>
Date: Mon, 28 Apr 2008 22:56:59 -0400
Subject: [PATCH] Corrected a few memory leaks from unallocated ped_unit_format
calls.
Deallocated memory in do_print() allocated by ped_unit_format calls.
---
parted/parted.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/parted/parted.c b/parted/parted.c
index a0fc2fd..0f6768b 100644
--- a/parted/parted.c
+++ b/parted/parted.c
@@ -1500,6 +1500,9 @@ do_print (PedDevice** dev)
table_add_row_from_strlist (table, row);
str_list_destroy (row);
ped_free (tmp);
+ ped_free (start);
+ ped_free (end);
+ ped_free (size);
}
table_rendered = table_render (table);
--
1.5.1.5
_______________________________________________
parted-devel mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/parted-devel