ia64/xen-unstable

changeset 15910:c36292e83f07

Fix two memory leaks in xend.
Signed-off-by: Kouya Shimura <kouya@jp.fujitsu.com>
author kfraser@localhost.localdomain
date Fri Sep 14 16:04:33 2007 +0100 (2007-09-14)
parents b032af6ad976
children 9f4f70233041
files tools/python/xen/lowlevel/xc/xc.c tools/python/xen/lowlevel/xs/xs.c
line diff
     1.1 --- a/tools/python/xen/lowlevel/xc/xc.c	Fri Sep 14 14:36:54 2007 +0100
     1.2 +++ b/tools/python/xen/lowlevel/xc/xc.c	Fri Sep 14 16:04:33 2007 +0100
     1.3 @@ -346,6 +346,7 @@ static PyObject *pyxc_domain_getinfo(XcO
     1.4              Py_DECREF(list);
     1.5              if ( pyhandle  != NULL ) { Py_DECREF(pyhandle);  }
     1.6              if ( info_dict != NULL ) { Py_DECREF(info_dict); }
     1.7 +            free(info);
     1.8              return NULL;
     1.9          }
    1.10          for ( j = 0; j < sizeof(xen_domain_handle_t); j++ )
     2.1 --- a/tools/python/xen/lowlevel/xs/xs.c	Fri Sep 14 14:36:54 2007 +0100
     2.2 +++ b/tools/python/xen/lowlevel/xs/xs.c	Fri Sep 14 16:04:33 2007 +0100
     2.3 @@ -365,6 +365,7 @@ static PyObject *xspy_set_permissions(Xs
     2.4          goto exit;
     2.5      }
     2.6  
     2.7 +    free(xsperms);
     2.8      Py_INCREF(Py_None);
     2.9      return Py_None;
    2.10