Whamcloud - gitweb
e2fuzz: fix fs handle cleanup when closing fails
authorDarrick J. Wong <darrick.wong@oracle.com>
Sun, 3 Aug 2014 02:18:29 +0000 (22:18 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 3 Aug 2014 02:18:29 +0000 (22:18 -0400)
commit8375a881f905be4ee66db24e111b3a70947a12ec
tree89e843e38512967fda01b67e82f6c72b600b873e
parent14207cf60e0f53b57ef8252a8ae3f6a124465b64
e2fuzz: fix fs handle cleanup when closing fails

Fix the handling of 'fs' when closing the FS fails so that we don't
dereference a NULL pointer.  Adapt to use ext2fs_close_free while
we're at it.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Fixes-Coverity-Bug: 1229241
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
misc/e2fuzz.c