[PATCH] Corrected a few memory leaks from unallocated ped_unit_format calls.
Matt Davis
mattdavis9 at gmail.com
Tue Apr 29 02:56:59 UTC 2008
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
--wac7ysb48OaltWcw--
More information about the parted-devel
mailing list