]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[PATCH] jffs2: memory leak in jffs2_scan_medium()
authorFlorin Malita <fmalita@gmail.com>
Mon, 15 May 2006 22:42:31 +0000 (23:42 +0100)
committerDavid Woodhouse <dwmw2@infradead.org>
Mon, 15 May 2006 22:42:31 +0000 (23:42 +0100)
commit5b5ffbc1e6d62d89747f3f59c09b2e488a7d7fce
treec2330fcf5e5c2e64d4b1bf3c7dce3ed19e164af1
parent184f565210c6c8a852c53ffc070f9add61e0f331
[PATCH] jffs2: memory leak in jffs2_scan_medium()

If jffs2_scan_eraseblock() fails and the exit path is taken, 's' is not
being deallocated.

Reported by Coverity, CID: 1258.

Signed-off-by: Florin Malita <fmalita@gmail.com>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
fs/jffs2/scan.c