From: Matthias Koenig Date: Mon, 7 Apr 2008 15:49:34 +0000 (-0400) Subject: e2fsck: avoid double free of ctx->filesystem_name X-Git-Tag: v1.40.9~13 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bb0224a77161d49f76879066b4486e759f4e94f1;p=thirdparty%2Fe2fsprogs.git e2fsck: avoid double free of ctx->filesystem_name In current git there is a double free on ctx->filesystem_name in the end of main() and in e2fsck_free_context, causing e2fsck to abort at the end of pass5. Signed-off-by: Matthias Koenig Signed-off-by: "Theodore Ts'o" --- diff --git a/e2fsck/unix.c b/e2fsck/unix.c index d3a8a2b69..303cec949 100644 --- a/e2fsck/unix.c +++ b/e2fsck/unix.c @@ -1390,7 +1390,6 @@ no_journal: ext2fs_close(fs); ctx->fs = NULL; - free(ctx->filesystem_name); free(ctx->journal_name); #ifdef RESOURCE_TRACK