From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Price Date: Tue, 10 May 2016 15:43:10 +0100 Subject: [Cluster-devel] [PATCH 1/2] fsck.gfs2: Fix a potential memory leak in pass3 Message-ID: <1462891391-19942-1-git-send-email-anprice@redhat.com> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Coverity spotted an instance where pass3() breaks out of the loop without first freeing the inode. Signed-off-by: Andrew Price --- gfs2/fsck/pass3.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gfs2/fsck/pass3.c b/gfs2/fsck/pass3.c index fbf8318..85d7e36 100644 --- a/gfs2/fsck/pass3.c +++ b/gfs2/fsck/pass3.c @@ -267,6 +267,7 @@ int pass3(struct gfs2_sbd *sdp) " (y/n) "))) { log_err( _("The block was not " "cleared\n")); + fsck_inode_put(&ip); break; } log_warn( _("inode %lld (0x%llx) is now " -- 2.4.11