projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
367993e
)
xfs: fix memory leak in xlog_recover_add_to_trans
author
tinguely@sgi.com
<tinguely@sgi.com>
Fri, 27 Sep 2013 14:00:55 +0000
(09:00 -0500)
committer
Ben Myers
<bpm@sgi.com>
Mon, 30 Sep 2013 22:52:43 +0000
(17:52 -0500)
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>
fs/xfs/xfs_log_recover.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/xfs/xfs_log_recover.c
b/fs/xfs/xfs_log_recover.c
index cc179878fe41f0f2a19e961b03a955a56c6e4a16..43240583fd5b3d8d13b1594e2ca54f3204090d56 100644
(file)
--- a/
fs/xfs/xfs_log_recover.c
+++ b/
fs/xfs/xfs_log_recover.c
@@
-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);
}