commit | a82d88ea99d3c5c21bf538b886da0482bf143fd5 | [log] [tgz] |
---|---|---|
author | Darrick J. Wong <darrick.wong@oracle.com> | Thu Jul 24 21:03:54 2014 -0400 |
committer | Theodore Ts'o <tytso@mit.edu> | Thu Jul 24 21:03:54 2014 -0400 |
tree | b46b135eb5b48c2358ce028c14939907c50c5566 | |
parent | 23d6dd1f1032af47d9a8cc7e9ecc1ec7a9b95718 [diff] |
e2fsck: free ctx->fs, not fs, at the end of fsck When we call ext2fs_close_free at the end of main(), we need to supply the address of ctx->fs, because the subsequent e2fsck_free_context call will try to access ctx->fs (which is now set to a freed block) to see if it should free the directory block list. This is clearly not desirable, so fix the problem. Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu>