aboutsummaryrefslogtreecommitdiffstats
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 09:42:37 -0700
commita9a0afa2ba550ea0490c27d743f695b1ab8ec624 (patch)
treecb88a77dbacccf7ee13dc0857d90364b898e195a
parent7d460b37fd40f65fc6fe8e5d01638f123a0077f3 (diff)
downloadhdt-pierre-disklib-fixes.tar.gz
hdt-pierre-disklib-fixes.tar.xz
hdt-pierre-disklib-fixes.zip
hdt: fix CLI crash when parsing unsupported geometriesdisklib-fixes
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>
-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 77061486..b33ba559 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);
}
}