WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-unstable] pygrub: fsimage binding must free objects

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] pygrub: fsimage binding must free objects with PyObject_DEL, not PyMem_DEL.
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Wed, 31 Jan 2007 07:05:32 -0800
Delivery-date: Wed, 31 Jan 2007 07:50:43 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Keir Fraser <keir@xxxxxxxxxxxxx>
# Date 1170179439 0
# Node ID fa8843d22450f354e691118100b38aa8770613c3
# Parent  6d8a099a152d6e606b60d73c3fcffb0e4c7d6371
pygrub: fsimage binding must free objects with PyObject_DEL, not PyMem_DEL.
Signed-off-by: Daniel P. Berrange <berrange@xxxxxxxxxx>
---
 tools/pygrub/src/fsimage/fsimage.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff -r 6d8a099a152d -r fa8843d22450 tools/pygrub/src/fsimage/fsimage.c
--- a/tools/pygrub/src/fsimage/fsimage.c        Tue Jan 30 17:39:54 2007 +0000
+++ b/tools/pygrub/src/fsimage/fsimage.c        Tue Jan 30 17:50:39 2007 +0000
@@ -125,7 +125,7 @@ fsimage_file_dealloc(fsimage_file_t *fil
        if (file->file != NULL)
                fsi_close_file(file->file);
        Py_XDECREF(file->fs);
-       PyMem_DEL(file);
+       PyObject_DEL(file);
 }
 
 static char fsimage_file_type__doc__[] = "Filesystem image file";
@@ -226,7 +226,7 @@ fsimage_fs_dealloc (fsimage_fs_t *fs)
 {
        if (fs->fs != NULL)
                fsi_close_fsimage(fs->fs);
-       PyMem_DEL(fs);
+       PyObject_DEL(fs);
 }
 
 PyDoc_STRVAR(fsimage_fs_type__doc__, "Filesystem image");

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] pygrub: fsimage binding must free objects with PyObject_DEL, not PyMem_DEL., Xen patchbot-unstable <=