[Parted-commits] GNU Parted Official Repository: Changes to 'master'
Jim Meyering
meyering at alioth.debian.org
Fri Jan 15 18:10:20 UTC 2010
libparted/disk.c | 2 ++
1 file changed, 2 insertions(+)
New commits:
commit 19b072592a7a551a861c200be58aef04a7546fb9
Author: Jim Meyering <meyering at redhat.com>
Date: Fri Jan 15 18:56:37 2010 +0100
libparted: avoid double-free on an OOM failure path
* libparted/disk.c (ped_disk_check): Don't double-free "fs_size".
diff --git a/libparted/disk.c b/libparted/disk.c
index c14d005..2d27b7c 100644
--- a/libparted/disk.c
+++ b/libparted/disk.c
@@ -632,7 +632,9 @@ ped_disk_check (const PedDisk* disk)
walk->num, part_size, fs_size);
free (part_size);
+
free (fs_size);
+ fs_size = NULL;
if (choice != PED_EXCEPTION_IGNORE)
return 0;
More information about the Parted-commits
mailing list