OSDN Git Service
(root)
/
android-x86
/
external-parted.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fc62de4
)
Don't leak a partition table buffer.
author
Jim Meyering
<jim@meyering.net>
Thu, 31 May 2007 18:35:04 +0000
(20:35 +0200)
committer
Jim 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
patch
|
blob
|
history
diff --git
a/libparted/labels/rdb.c
b/libparted/labels/rdb.c
index
35ed156
..
483a292
100644
(file)
--- 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;
}