mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
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:
parent
6d313498f0
commit
9b3b77fe66
1 changed files with 1 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue