aboutsummaryrefslogtreecommitdiffstats
path: root/xen/common/unlzo.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2012-01-23 14:51:02 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2012-01-23 14:51:02 +0100
commit314dbb3238dc79d8a23d122bef135e5010346530 (patch)
tree5260823ee8b7cfb8b5b1b41daedd6a80f993813a /xen/common/unlzo.c
parent079ff2d32c3db5a45cdbc8fb05be279544bdc111 (diff)
downloadxen-314dbb3238dc79d8a23d122bef135e5010346530.tar.gz
xen-314dbb3238dc79d8a23d122bef135e5010346530.tar.bz2
xen-314dbb3238dc79d8a23d122bef135e5010346530.zip
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>
Diffstat (limited to 'xen/common/unlzo.c')
-rw-r--r--xen/common/unlzo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xen/common/unlzo.c b/xen/common/unlzo.c
index 57b8824209..57d16f3cca 100644
--- a/xen/common/unlzo.c
+++ b/xen/common/unlzo.c
@@ -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);