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:
3259d57
)
UI: plug a leak
author
Jim Meyering
<meyering@redhat.com>
Fri, 27 May 2011 12:27:41 +0000
(14:27 +0200)
committer
Jim Meyering
<meyering@redhat.com>
Fri, 27 May 2011 12:27:41 +0000
(14:27 +0200)
* parted/ui.c (command_line_get_fs_type): Don't leak an FS type name
string.
parted/ui.c
patch
|
blob
|
history
diff --git
a/parted/ui.c
b/parted/ui.c
index
5255538
..
7e2db32
100644
(file)
--- a/
parted/ui.c
+++ b/
parted/ui.c
@@
-1082,6
+1082,7
@@
command_line_get_fs_type (const char* prompt, const PedFileSystemType*(* value))
ped_exception_throw (PED_EXCEPTION_ERROR, PED_EXCEPTION_CANCEL,
_("Unknown file system type \"%s\"."),
fs_type_name);
+ free (fs_type_name);
return 0;
}