From: Matt Davis Date: Sun, 27 Apr 2008 00:31:39 +0000 (-0400) Subject: Corrected a small memory leak when displaying partition information X-Git-Tag: android-x86-4.4-r1~924 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=v1.8.8.1-19-gb56d69c;p=android-x86%2Fexternal-parted.git Corrected a small memory leak when displaying partition information Deallocated a very small memory allocation that occurs in a for loop. This occurred during output of partition numbers. --- diff --git a/parted/parted.c b/parted/parted.c index 46999f5..723e8eb 100644 --- a/parted/parted.c +++ b/parted/parted.c @@ -1496,6 +1496,7 @@ do_print (PedDevice** dev) //PED_ASSERT (row.cols == caption.cols) table_add_row_from_strlist (table, row); str_list_destroy (row); + ped_free (tmp); } table_rendered = table_render (table);