On 23/01/2012 13:26, "Jan Beulich" <JBeulich@suse.com> wrote:
> 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>
Acked-by: Keir Fraser <keir@xen.org>
> --- a/xen/common/unlzo.c
> +++ b/xen/common/unlzo.c
> @@ -254,7 +254,7 @@ STATIC int INIT unlzo(u8 *input, unsigne
> ret = 0;
> exit_2:
> if (!input)
> - free(in_buf);
> + free(in_buf_save);
> exit_1:
> if (!output)
> free(out_buf);
>
>
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xensource.com
> http://lists.xensource.com/xen-devel