]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commitdiff
e2fsck: avoid double free of ctx->filesystem_name
authorMatthias Koenig <mkoenig@suse.de>
Mon, 7 Apr 2008 15:49:34 +0000 (11:49 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 7 Apr 2008 16:29:03 +0000 (12:29 -0400)
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 <mkoenig@suse.de>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
e2fsck/unix.c

index d3a8a2b69b31e7b17b89f3f335ad6c3ace3cdbe3..303cec9497f4acfbc1e6999e1bd7fe743091616c 100644 (file)
@@ -1390,7 +1390,6 @@ no_journal:
        
        ext2fs_close(fs);
        ctx->fs = NULL;
-       free(ctx->filesystem_name);
        free(ctx->journal_name);
 
 #ifdef RESOURCE_TRACK