aboutsummaryrefslogtreecommitdiffstats
path: root/com32
diff options
context:
space:
mode:
authorPierre-Alexandre Meyer <pierre@mouraf.org>2009-08-22 09:42:37 -0700
committerPierre-Alexandre Meyer <pierre@mouraf.org>2009-08-22 10:09:35 -0700
commitb3514f90bf55e5a1f277cbcf83afa509b9d13acc (patch)
treef07d6a3eb2a85135a1b55df82e235ec7eed69496 /com32
parentdaba7ba9c40e257fcb6da033c54dd807f81b1a25 (diff)
downloadsyslinux-b3514f90bf55e5a1f277cbcf83afa509b9d13acc.tar.gz
syslinux-b3514f90bf55e5a1f277cbcf83afa509b9d13acc.tar.xz
syslinux-b3514f90bf55e5a1f277cbcf83afa509b9d13acc.zip
hdt: fix CLI crash when parsing unsupported geometries
Remove extra free() calls: these were needed before the introduction of the disklib errno. We apparently forgot to remove them. Reported-by: Gert Hulselmans <hulselmansgert@gmail.com> Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
Diffstat (limited to 'com32')
-rw-r--r--com32/hdt/hdt-cli-disk.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/com32/hdt/hdt-cli-disk.c b/com32/hdt/hdt-cli-disk.c
index ee7c10df..080e1327 100644
--- a/com32/hdt/hdt-cli-disk.c
+++ b/com32/hdt/hdt-cli-disk.c
@@ -95,7 +95,6 @@ static void show_partition_information(struct driveinfo *drive_info,
} else if (error) {
get_error(&error_buffer);
more_printf("%s\n", error_buffer);
- free(error_buffer);
}
more_printf("\n");
@@ -147,7 +146,6 @@ void main_show_disk(int argc, char **argv,
if (parse_partition_table(d, &show_partition_information) == -1) {
get_error(&error_buffer);
more_printf("%s\n", error_buffer);
- free(error_buffer);
}
}