OSDN Git Service

Don't leak a partition table buffer.
authorJim Meyering <jim@meyering.net>
Thu, 31 May 2007 18:35:04 +0000 (20:35 +0200)
committerJim Meyering <jim@meyering.net>
Thu, 31 May 2007 18:35:04 +0000 (20:35 +0200)
* libparted/labels/rdb.c (amiga_read): Free the buffer upon success
as well as on failure.

libparted/labels/rdb.c

index 35ed156..483a292 100644 (file)
@@ -562,6 +562,7 @@ amiga_read (PedDisk* disk)
                }
                ped_constraint_destroy (constraint_exact);
        }
+       ped_free(partition);
        return 1;
 }