[PATCH] Plug a small mem hole.

Matt Davis mattdavis9 at gmail.com
Fri May 2 03:53:06 UTC 2008


Deallocate an allocated alignment struct that is not needed.
---
 libparted/device.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/libparted/device.c b/libparted/device.c
index e4bbb02..ff7831d 100644
--- a/libparted/device.c
+++ b/libparted/device.c
@@ -437,6 +437,8 @@ ped_device_get_constraint (PedDevice* dev)
                                 ped_geometry_new (dev, 0, dev->length),
                                 1, dev->length);
 
+        ped_alignment_destroy (start_align);
+
         return c;
 }
 
-- 
1.5.1.5


--/04w6evG8XlLl3ft
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="0005-Free-metadata-superblock-after-ext2-metadata-has-bee.patch"



More information about the parted-devel mailing list