From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:48713) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QIdJt-0008L9-D5 for qemu-devel@nongnu.org; Sat, 07 May 2011 04:57:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QIdJr-000344-Uj for qemu-devel@nongnu.org; Sat, 07 May 2011 04:57:01 -0400 Received: from moutng.kundenserver.de ([212.227.17.10]:63195) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QIdJr-00033r-Jk for qemu-devel@nongnu.org; Sat, 07 May 2011 04:56:59 -0400 Message-ID: <4DC50954.4060601@mail.berlios.de> Date: Sat, 07 May 2011 10:56:52 +0200 From: Stefan Weil MIME-Version: 1.0 References: <1304708747-3692-1-git-send-email-pedro.scarapiccha@br.flextronics.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] virtio-9p: Fix a memory leak List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Pedro Scarapicchia Junior Cc: Stefan Hajnoczi , "Venkateswararao Jujjuri (JV)" , qemu-devel@nongnu.org Am 07.05.2011 10:34, schrieb Stefan Hajnoczi: > On Fri, May 6, 2011 at 8:05 PM, Pedro Scarapicchia Junior > wrote: >> At v9fs_walk_complete(), the memory allocated at v9fs_walk() is not being >> released leading system to crash due out of memory. >> >> This patch releases structure V9fsWalkState after v9fs_walk is complete. >> >> Signed-off-by: Pedro Scarapicchia Junior >> >> --- >> hw/9pfs/virtio-9p.c | 2 ++ >> 1 files changed, 2 insertions(+), 0 deletions(-) > > Thanks for this patch. I suggest CCing Venkateswararao Jujjuri (JV) > , the virtio-9p maintainer (see MAINTAINERS > file), on future patches so he can pick them up quickly. > > Stefan Releasing the memory in v9fs_walk() were it was allocated would be cleaner and easier to review. Is this not possible? Stefan W.