jffs2: leaking jffs2_summary in function jffs2_scan_medium
authorChristian Engelmayer <christian.engelmayer@frequentis.com>
Sat, 13 Jun 2009 21:06:29 +0000 (23:06 +0200)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Mon, 15 Jun 2009 10:17:46 +0000 (11:17 +0100)
commita2ab0ce09edf20b5228208405dd14bc8790fbdbd
tree42e2bd255dd628cf9fa3395135f3106527e1a184
parent272023df26da2668ecc3937f8eeb48c8683b64fa
jffs2: leaking jffs2_summary in function jffs2_scan_medium

In case of an error returned by file_dirty() 's' is not freed as the cleanup
path is skipped.

Reported by Coverity.

Signed-off-by: Christian Engelmayer <christian.engelmayer@frequentis.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
fs/jffs2/scan.c