ia64/xen-unstable

changeset 19250:6f207d1eee5c

acm: Return a valid buffer

This patch reverts a previous patch trying to fix a memory, even
though I don't think there was any. Now return a valid buffer. All
functions calling this function do free the buffer.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
author Keir Fraser <keir.fraser@citrix.com>
date Mon Mar 02 10:31:16 2009 +0000 (2009-03-02)
parents 5255784eb0d7
children 16fc70ce40a7
files tools/python/xen/lowlevel/acm/acm.c
line diff
     1.1 --- a/tools/python/xen/lowlevel/acm/acm.c	Mon Mar 02 10:30:15 2009 +0000
     1.2 +++ b/tools/python/xen/lowlevel/acm/acm.c	Mon Mar 02 10:31:16 2009 +0000
     1.3 @@ -68,8 +68,6 @@ static void *__getssid(int domid, uint32
     1.4          goto out2;
     1.5      } else {
     1.6          *buflen = SSID_BUFFER_SIZE;
     1.7 -        free(buf);
     1.8 -        buf = NULL;
     1.9          goto out2;
    1.10      }
    1.11   out2: