Here's an incidental little fix.

        * libparted/labels/rdb.c (amiga_read): Free the buffer upon success
        as well as on failure.

Signed-off-by: Jim Meyering <[EMAIL PROTECTED]>
---
 libparted/labels/rdb.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

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

--
1.5.2.146.gb75c6

_______________________________________________
parted-devel mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/parted-devel

Reply via email to