Skip to content

Commit 35f1526

Browse files
saschahauertorvalds
authored andcommitted
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>
1 parent c755201 commit 35f1526

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/decompress_unlzo.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ STATIC inline int INIT unlzo(u8 *input, int in_len,
279279
ret = 0;
280280
exit_2:
281281
if (!input)
282-
free(in_buf);
282+
free(in_buf_save);
283283
exit_1:
284284
if (!output)
285285
free(out_buf);

0 commit comments

Comments
 (0)