From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48106) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZKm74-0005Ee-VR for qemu-devel@nongnu.org; Thu, 30 Jul 2015 07:35:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZKm71-0001kW-IY for qemu-devel@nongnu.org; Thu, 30 Jul 2015 07:35:02 -0400 Received: from e39.co.us.ibm.com ([32.97.110.160]:48858) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZKm71-0001jT-9x for qemu-devel@nongnu.org; Thu, 30 Jul 2015 07:34:59 -0400 Received: from /spool/local by e39.co.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 30 Jul 2015 05:34:58 -0600 From: Michael Roth Date: Thu, 30 Jul 2015 06:32:30 -0500 Message-Id: <1438255988-10418-16-git-send-email-mdroth@linux.vnet.ibm.com> In-Reply-To: <1438255988-10418-1-git-send-email-mdroth@linux.vnet.ibm.com> References: <1438255988-10418-1-git-send-email-mdroth@linux.vnet.ibm.com> Subject: [Qemu-devel] [PATCH 15/53] hw/acpi/aml-build: Fix memory leak List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Shannon Zhao , "Michael S. Tsirkin" , qemu-stable@nongnu.org, Shannon Zhao From: Shannon Zhao Signed-off-by: Shannon Zhao Signed-off-by: Shannon Zhao Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin Reviewed-by: Igor Mammedov (cherry picked from commit afcf905cff7971324c2706600ead35a1f41f417a) Signed-off-by: Michael Roth --- hw/acpi/aml-build.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/acpi/aml-build.c b/hw/acpi/aml-build.c index d7945f6..41ff6a3 100644 --- a/hw/acpi/aml-build.c +++ b/hw/acpi/aml-build.c @@ -304,6 +304,7 @@ static void aml_free(gpointer data, gpointer user_data) { Aml *var = data; build_free_array(var->buf); + g_free(var); } Aml *init_aml_allocator(void) -- 1.9.1