summaryrefslogtreecommitdiff
path: root/parted/ui.c
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2011-05-27 14:31:45 +0200
committerJim Meyering <meyering@redhat.com>2011-05-27 14:31:45 +0200
commit7ee08acc079d18b371fd8787965f5388b115c893 (patch)
treec6095042d8c23f9608c05f7c66c648695f8325eb /parted/ui.c
parent82affc12511b81f10c65a6bc4437c1682e8eea38 (diff)
downloadparted-7ee08acc079d18b371fd8787965f5388b115c893.tar.gz
UI: avoid leak when interactive sector selection matches default
* parted/ui.c (command_line_get_fs_type): Don't leak an input "word".
Diffstat (limited to 'parted/ui.c')
-rw-r--r--parted/ui.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/parted/ui.c b/parted/ui.c
index 7e2db32..6d2fde1 100644
--- a/parted/ui.c
+++ b/parted/ui.c
@@ -946,6 +946,7 @@ command_line_get_sector (const char* prompt, PedDevice* dev, PedSector* value,
}
free (def_str);
+ free (input);
return 1;
}