ia64/xen-unstable

changeset 13760:fa8843d22450

pygrub: fsimage binding must free objects with PyObject_DEL, not PyMem_DEL.
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
author Keir Fraser <keir@xensource.com>
date Tue Jan 30 17:50:39 2007 +0000 (2007-01-30)
parents 6d8a099a152d
children abd140fe5f6c
files tools/pygrub/src/fsimage/fsimage.c
line diff
     1.1 --- a/tools/pygrub/src/fsimage/fsimage.c	Tue Jan 30 17:39:54 2007 +0000
     1.2 +++ b/tools/pygrub/src/fsimage/fsimage.c	Tue Jan 30 17:50:39 2007 +0000
     1.3 @@ -125,7 +125,7 @@ fsimage_file_dealloc(fsimage_file_t *fil
     1.4  	if (file->file != NULL)
     1.5  		fsi_close_file(file->file);
     1.6  	Py_XDECREF(file->fs);
     1.7 -	PyMem_DEL(file);
     1.8 +	PyObject_DEL(file);
     1.9  }
    1.10  
    1.11  static char fsimage_file_type__doc__[] = "Filesystem image file";
    1.12 @@ -226,7 +226,7 @@ fsimage_fs_dealloc (fsimage_fs_t *fs)
    1.13  {
    1.14  	if (fs->fs != NULL)
    1.15  		fsi_close_fsimage(fs->fs);
    1.16 -	PyMem_DEL(fs);
    1.17 +	PyObject_DEL(fs);
    1.18  }
    1.19  
    1.20  PyDoc_STRVAR(fsimage_fs_type__doc__, "Filesystem image");