xfs: fix memory leak in xlog_recover_add_to_trans

Free the memory in error path of xlog_recover_add_to_trans().
Normally this memory is freed in recovery pass2, but is leaked
in the error path.

Signed-off-by: Mark Tinguely <[email protected]>
Reviewed-by: Eric Sandeen <[email protected]>
Signed-off-by: Ben Myers <[email protected]>

(cherry picked from commit 519ccb81ac)
This commit is contained in:
[email protected] 2013-09-27 09:00:55 -05:00 • committed by Ben Myers
commit 9b3b77fe66

View file

@ -1585,6 +1585,7 @@ xlog_recover_add_to_trans(
"bad number of regions (%d) in inode log format",
in_f->ilf_size);
ASSERT(0);
free(ptr);
return XFS_ERROR(EIO);
}