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 <tinguely@sgi.com> Reviewed-by: Eric Sandeen <sandeen@redhat.com> Signed-off-by: Ben Myers <bpm@sgi.com>
This commit is contained in:
parent
367993e7c6
commit
519ccb81ac
|
@ -1585,6 +1585,7 @@ xlog_recover_add_to_trans(
|
||||||
"bad number of regions (%d) in inode log format",
|
"bad number of regions (%d) in inode log format",
|
||||||
in_f->ilf_size);
|
in_f->ilf_size);
|
||||||
ASSERT(0);
|
ASSERT(0);
|
||||||
|
free(ptr);
|
||||||
return XFS_ERROR(EIO);
|
return XFS_ERROR(EIO);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue