Whamcloud - gitweb
[COVERITY] Fix memory leak in fsck on error paths
authorBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 28 Mar 2007 13:48:07 +0000 (09:48 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 28 Mar 2007 13:48:07 +0000 (09:48 -0400)
commit12f8ff440cbea083797a3f62fe8c8ab0e03f2e6b
treeef7474b5f8ea7eb65738cfe4f9ad4bcae3861a63
parent0bed54fd3ea86772022fa994a6af265613464699
[COVERITY] Fix memory leak in fsck on error paths

The memory allocated by inst is not reclaimed.  There also was a
call to exit that coverity did not catch the resource leak.  This
might not really be a big issue since the memory will be freed when
fsck exits, but it should be done anyway imho.

Coverity ID: 32: Resource Leak

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
misc/ChangeLog
misc/fsck.c