Skip to content

Commit

Permalink
unlzo: fix input buffer free
Browse files Browse the repository at this point in the history
unlzo modifies the pointer to in_buf, so we have to free the original
buffer, not the modified pointer.

Signed-off-by: Sascha Hauer <[email protected]>
Cc: Lasse Collin <[email protected]>
Cc: Namhyung Kim <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
saschahauer authored and torvalds committed Jan 13, 2012
1 parent c755201 commit 35f1526
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/decompress_unlzo.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 35f1526

Please sign in to comment.