Received: from eggs.gnu.org ([208.118.235.92]:49172) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tv7Ny-0001rz-S5 for qemu-devel@nongnu.org; Tue, 15 Jan 2013 09:21:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Tv7Nu-0004DF-93 for qemu-devel@nongnu.org; Tue, 15 Jan 2013 09:21:06 -0500 Received: from mx1.redhat.com ([209.132.183.28]:6438) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tv7Nu-00049x-2B for qemu-devel@nongnu.org; Tue, 15 Jan 2013 09:21:02 -0500 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r0FEKfRq022029 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 15 Jan 2013 09:20:51 -0500 From: Markus Armbruster References: <1358256220-5460-1-git-send-email-armbru@redhat.com> <1358256220-5460-5-git-send-email-armbru@redhat.com> <50F55F06.60402@redhat.com> Date: Tue, 15 Jan 2013 15:20:03 +0100 In-Reply-To: <50F55F06.60402@redhat.com> (Kevin Wolf's message of "Tue, 15 Jan 2013 14:52:06 +0100") Message-ID: <87d2x6cyuk.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH 4/4] block: Fix how mirror_run() frees its buffer List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Kevin Wolf Cc: pbonzini@redhat.com, qemu-devel@nongnu.org, stefanha@redhat.com Kevin Wolf writes: > Am 15.01.2013 14:23, schrieb Markus Armbruster: >> It allocates with qemu_blockalign(), therefore it must free with >> qemu_vfree(), not g_free(). >> >> Since I'm touching it anyway, move the free to a more obviosly correct >> place. > > ...except that it's now leaked for all error cases but the first. Brain fart caused by looking at the RHEL code, will respin.