Received: from eggs.gnu.org ([2001:4830:134:3::10]:56918) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fpD05-00044Q-KP for qemu-devel@nongnu.org; Mon, 13 Aug 2018 09:35:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fpD02-0001nA-H3 for qemu-devel@nongnu.org; Mon, 13 Aug 2018 09:35:13 -0400 From: Alberto Garcia In-Reply-To: <20180813132754.16744-1-kwolf@redhat.com> References: <20180813132754.16744-1-kwolf@redhat.com> Date: Mon, 13 Aug 2018 15:34:58 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [Qemu-block] [PATCH] block/qapi: Fix memory leak in qmp_query_blockstats() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Kevin Wolf , qemu-block@nongnu.org Cc: qemu-devel@nongnu.org, qemu-stable@nongnu.org On Mon 13 Aug 2018 03:27:54 PM CEST, Kevin Wolf wrote: > For BlockBackends that are skipped in query-blockstats, we would leak > info since commit 567dcb31. Allocate info only later to avoid the memory > leak. > > Fixes: CID 1394727 > Cc: qemu-stable@nongnu.org > Signed-off-by: Kevin Wolf Reviewed-by: Alberto Garcia Berto