[PATCH] e2fsprogs: avoid double free of ctx->filesystem_name in e2fsck

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

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.

Matthias

Signed-off-by: Matthias Koenig <mkoenig@xxxxxxx>

Index: e2fsprogs-1.40.8+NEXT+git20080401/e2fsck/unix.c
===================================================================
--- e2fsprogs-1.40.8+NEXT+git20080401.orig/e2fsck/unix.c
+++ e2fsprogs-1.40.8+NEXT+git20080401/e2fsck/unix.c
@@ -1366,7 +1366,6 @@ no_journal:
 #endif
 	ext2fs_close(fs);
 	ctx->fs = NULL;
-	free(ctx->filesystem_name);
 	free(ctx->journal_name);
 
 	e2fsck_free_context(ctx);

[Index of Archives]     [Reiser Filesystem Development]     [Ceph FS]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux FS]     [Yosemite National Park]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Device Mapper]     [Linux Media]

  Powered by Linux