e2fsprogs: avoid double free of ctx->filesystem_name in e2fsck
PATCH 1/1 e2fsprogs: avoid double free of ctx->filesystem_name in e2fsck
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 <[email protected]>
e2fsck/unix.c +0 -1
@@ -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);
Quoted 5 lines · Matthias Koenig
Hi,
in current git there is a double free on
ctx->filesystem_namein the end ofmain()and ine2fsck_free_context, causing e2fsck to abort at the end of pass5.
Oops. Thanks for pointing that out. I've checked this into the master branch.
- Ted