Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 35f15268 authored by Sascha Hauer's avatar Sascha Hauer Committed by Linus Torvalds
Browse files

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: default avatarSascha Hauer <s.hauer@pengutronix.de>
Cc: Lasse Collin <lasse.collin@tukaani.org>
Cc: Namhyung Kim <namhyung@gmail.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent c755201e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);