[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] unlzo: fix input buffer free
# HG changeset patch # User Sascha Hauer <s.hauer@xxxxxxxxxxxxxx> # Date 1327326662 -3600 # Node ID 9920641d11169a86ec9d0cb47e78414720545861 # Parent 137c16a83e4084b717a8a5685371800aeb313233 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@xxxxxxxxxxxxxx> Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx> Committed-by: Jan Beulich <jbeulich@xxxxxxxx> --- diff -r 137c16a83e40 -r 9920641d1116 xen/common/unlzo.c --- a/xen/common/unlzo.c Mon Jan 23 09:42:12 2012 +0000 +++ b/xen/common/unlzo.c Mon Jan 23 14:51:02 2012 +0100 @@ -254,7 +254,7 @@ ret = 0; exit_2: if (!input) - free(in_buf); + free(in_buf_save); exit_1: if (!output) free(out_buf); _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |