mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 10:40:03 +01:00
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:
1 parent
079ff2d32c
commit
314dbb3238
1 file changed
+1
-1
+1
-1
@@ -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);
|
||||
|
||||