summaryrefslogtreecommitdiffstats
path: root/lib/decompress_unlzo.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2012-01-13 02:21:01 +0100
committerLinus Torvalds <torvalds@linux-foundation.org>2012-01-13 05:13:13 +0100
commit35f1526845a9d804206883e19bd257d3dcef758f (patch)
treeaaefaf3e43abec7522fe08f8632cd7ff5dbffa7f /lib/decompress_unlzo.c
parentramoops: update parameters only after successful init (diff)
downloadlinux-35f1526845a9d804206883e19bd257d3dcef758f.tar.xz
linux-35f1526845a9d804206883e19bd257d3dcef758f.zip
unlzo: fix input buffer free
unlzo modifies the pointer to in_buf, so we have to free the original buffer, not the modified pointer. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Cc: Lasse Collin <lasse.collin@tukaani.org> Cc: Namhyung Kim <namhyung@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to '')
-rw-r--r--lib/decompress_unlzo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/decompress_unlzo.c b/lib/decompress_unlzo.c
index 5a7a2adf4c4c..4531294fa62f 100644
--- a/lib/decompress_unlzo.c
+++ b/lib/decompress_unlzo.c
@@ -279,7 +279,7 @@ STATIC inline int INIT unlzo(u8 *input, int in_len,
ret = 0;
exit_2:
if (!input)
- free(in_buf);
+ free(in_buf_save);
exit_1:
if (!output)
free(out_buf);