Received: from eggs.gnu.org ([2001:4830:134:3::10]:56114) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V1g5Q-0007r8-1A for qemu-devel@nongnu.org; Tue, 23 Jul 2013 13:09:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V1g5O-0007SO-Qn for qemu-devel@nongnu.org; Tue, 23 Jul 2013 13:09:19 -0400 Message-ID: <51EEB8BA.7040405@msgid.tls.msk.ru> Date: Tue, 23 Jul 2013 21:09:14 +0400 From: Michael Tokarev MIME-Version: 1.0 References: <1371377676-18809-1-git-send-email-sw@weilnetz.de> <87fvvubt9s.fsf@in.ibm.com> <51E98F49.7010300@weilnetz.de> In-Reply-To: <51E98F49.7010300@weilnetz.de> Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [Qemu-trivial] [PATCH] hw/9pfs: Fix potential memory leak and avoid reuse of freed memory List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Weil Cc: qemu-trivial , Anthony Liguori , "M. Mohan Kumar" , "Aneesh Kumar K.V" , qemu-devel 19.07.2013 23:11, Stefan Weil wrote: > Am 04.07.2013 10:53, schrieb M. Mohan Kumar: >> Stefan Weil writes: >> >>> The leak was reported by cppcheck. >>> >>> Function proxy_init also calls g_free for ctx->fs_root. >>> Avoid reuse of this memory by setting ctx->fs_root to NULL. >>> >>> Signed-off-by: Stefan Weil >> Reviewed-by: M. Mohan Kumar Thanks, applied to the trivial patches queue. /mjt