From: Stefan Berger Subject: [PATCH] [Xend] Return a valid buffer Date: Tue, 24 Feb 2009 23:07:03 -0500 Message-ID: <1235534823.1060.2.camel@gsal-3.watson.ibm.com> Reply-To: stefanb@us.ibm.com Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-K/AemMScdiwujMek0sxC" 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 Cc: Keir Fraser List-Id: xen-devel@lists.xenproject.org --=-K/AemMScdiwujMek0sxC Content-Type: text/plain Content-Transfer-Encoding: 7bit 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 --=-K/AemMScdiwujMek0sxC Content-Disposition: attachment; filename=fix_return_buffer.diff Content-Type: text/x-patch; name=fix_return_buffer.diff; charset=UTF-8 Content-Transfer-Encoding: 7bit diff -r f8187a343ad2 tools/python/xen/lowlevel/acm/acm.c --- a/tools/python/xen/lowlevel/acm/acm.c Fri Feb 20 17:02:36 2009 +0000 +++ b/tools/python/xen/lowlevel/acm/acm.c Tue Feb 24 23:03:17 2009 -0500 @@ -68,8 +68,6 @@ goto out2; } else { *buflen = SSID_BUFFER_SIZE; - free(buf); - buf = NULL; goto out2; } out2: --=-K/AemMScdiwujMek0sxC 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 --=-K/AemMScdiwujMek0sxC--