[Parted-commits] GNU Parted Official Repository: Changes to 'master'
Jim Meyering
meyering at alioth.debian.org
Fri Jun 1 17:12:37 UTC 2007
libparted/labels/rdb.c | 1 +
1 file changed, 1 insertion(+)
New commits:
commit 23ccfaf4d4bf344a1744aa95fbb0657f8d951269
Author: Jim Meyering <jim at meyering.net>
Date: Thu May 31 20:35:04 2007 +0200
Don't leak a partition table buffer.
* libparted/labels/rdb.c (amiga_read): Free the buffer upon success
as well as on failure.
diff --git a/libparted/labels/rdb.c b/libparted/labels/rdb.c
index 35ed156..483a292 100644
--- a/libparted/labels/rdb.c
+++ b/libparted/labels/rdb.c
@@ -562,6 +562,7 @@ amiga_read (PedDisk* disk)
}
ped_constraint_destroy (constraint_exact);
}
+ ped_free(partition);
return 1;
}
More information about the Parted-commits
mailing list