Skip to content
Snippets Groups Projects
Commit 3560160a authored by David Woodhouse's avatar David Woodhouse
Browse files

[JFFS2] Fix memory leak in scan code; improve comments.


If we had to allocate extra space for the summary node, we weren't
correctly freeing it when jffs2_sum_scan_sumnode() returned nonzero --
which is both the success and the failure case. Only when it returned
zero, which means fall through to the full scan, were we correctly freeing
the buffer.

Document the meaning of those return codes while we're at it.

Signed-off-by: default avatarDavid Woodhouse <dwmw2@infradead.org>
parent 6171586a
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment