]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfsprogs:free bp in xlog_find_tail() error path
authorEric Sandeen <sandeen@redhat.com>
Thu, 1 Aug 2013 01:33:47 +0000 (01:33 +0000)
committerMark Tinguely <tinguely@eagdhcp-232-140.americas.sgi.com>
Fri, 9 Aug 2013 13:23:47 +0000 (08:23 -0500)
commitdc93954aa6f13963bcc87fc00ce55a4745dc7b93
tree2139186122cc64c16842d697e20b115f2111727a
parent4623d1041dd34d73aeab4b51002fc9ca6d543415
xfsprogs:free bp in xlog_find_tail() error path

xlog_find_tail() currently leaks a bp on one error path.

There is no error target, so manually free the bp before
returning the error.

Found by Coverity.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Mark Tinguely <tinguely@sgi.com>
libxlog/xfs_log_recover.c