>From 8fea9bf3960edda86e541d2871c7a7353d5c9455 Mon Sep 17 00:00:00 2001
From: Matt Davis <[EMAIL PROTECTED]>
Date: Sat, 26 Apr 2008 20:31:39 -0400
Subject: [PATCH] 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.
---
parted/parted.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
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);
--
1.5.1.5
_______________________________________________
parted-devel mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/parted-devel