From: Kouya Shimura Subject: [PATCH] Fix minor memory leak in xend Date: Thu, 13 Sep 2007 14:10:34 +0900 Message-ID: <7k8x7bup4l.fsf@pingu.sky.yk.fujitsu.co.jp> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="PIz3b7qLAD" Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --PIz3b7qLAD Content-Type: text/plain; charset=us-ascii Content-Description: message body text Content-Transfer-Encoding: 7bit Fix minor memory leak in xend. Signed-off-by: Kouya Shimura --PIz3b7qLAD Content-Type: text/plain Content-Disposition: inline; filename="minor-leak.patch" Content-Transfer-Encoding: 7bit diff -r a00cc97b392a tools/python/xen/lowlevel/xc/xc.c --- a/tools/python/xen/lowlevel/xc/xc.c Wed Sep 12 09:43:33 2007 +0100 +++ b/tools/python/xen/lowlevel/xc/xc.c Thu Sep 13 14:02:36 2007 +0900 @@ -346,6 +346,7 @@ static PyObject *pyxc_domain_getinfo(XcO Py_DECREF(list); if ( pyhandle != NULL ) { Py_DECREF(pyhandle); } if ( info_dict != NULL ) { Py_DECREF(info_dict); } + free(info); return NULL; } for ( j = 0; j < sizeof(xen_domain_handle_t); j++ ) --PIz3b7qLAD Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --PIz3b7qLAD--