[Parted-commits] GNU Parted Official Repository: Changes to 'master'

Otavio Salvador otavio at alioth.debian.org
Tue Apr 29 17:48:33 UTC 2008


 parted/parted.c |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit eadcd8e418af50c7ae6eaa5a7c5d19bc26ff1efa
Author: Matt Davis <mattdavis9 at gmail.com>
Date:   Mon Apr 28 22:56:59 2008 -0400

    Corrected a few memory leaks from unallocated ped_unit_format calls.
    
    Deallocated memory in do_print() allocated by ped_unit_format calls.

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); 



More information about the Parted-commits mailing list