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>
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Committed-by: Jan Beulich <jbeulich@suse.com>
This commit is contained in:
Sascha Hauer committed 2012-01-23 14:51:02 +01:00
1 parent 079ff2d32c
commit 314dbb3238
1 file changed
+1 -1
+1 -1
View File
@@ -254,7 +254,7 @@ STATIC int INIT unlzo(u8 *input, unsigned int in_len,
ret = 0;
exit_2:
if (!input)
free(in_buf);
free(in_buf_save);
exit_1:
if (!output)
free(out_buf);
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.