diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2012-01-12 20:21:01 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-01-12 23:13:13 -0500 |
commit | 35f1526845a9d804206883e19bd257d3dcef758f (patch) | |
tree | aaefaf3e43abec7522fe08f8632cd7ff5dbffa7f /lib/decompress_unlzo.c | |
parent | c755201eb5c1e09f3477d0e83ae1e3aadac0e8d1 (diff) |
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 'lib/decompress_unlzo.c')
-rw-r--r-- | lib/decompress_unlzo.c | 2 |
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, | |||
279 | ret = 0; | 279 | ret = 0; |
280 | exit_2: | 280 | exit_2: |
281 | if (!input) | 281 | if (!input) |
282 | free(in_buf); | 282 | free(in_buf_save); |
283 | exit_1: | 283 | exit_1: |
284 | if (!output) | 284 | if (!output) |
285 | free(out_buf); | 285 | free(out_buf); |