From patchwork Thu Jul 30 11:32:30 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Roth X-Patchwork-Id: 51695 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f71.google.com (mail-la0-f71.google.com [209.85.215.71]) by patches.linaro.org (Postfix) with ESMTPS id B9F6E22DB5 for ; Thu, 30 Jul 2015 11:38:59 +0000 (UTC) Received: by lahh5 with SMTP id h5sf11508116lah.0 for ; Thu, 30 Jul 2015 04:38:58 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:date :message-id:in-reply-to:references:cc:subject:precedence:list-id :list-unsubscribe:list-archive:list-post:list-help:list-subscribe :errors-to:sender:x-original-sender :x-original-authentication-results:mailing-list; bh=t82TGdQ/wt6Uu5/eXnwZAL1eHLG0VjV//AoY0lLiA6I=; b=ejICo86TcUvP53q8DcRMF9j+FM1Ssa4XAiJkUD8IgJh2/070rtfag8kjuhVOF0wtrm ImdBgIeuIWmXBIZzXw7h96HCWsQYYP00ctGo/6vZl76j7+Hn9PnlUx1EB6aIjpX7/RF6 ke1NPjAuvby614s5uTOCS2hOKV7oYM/PQLQy1TycmZYSwpNZ21nnARBRwOx2JHtAuRe+ 5F57IK7UNdh1LzyPV+K6kL10XUb/5rVOsRJtxhAZhx81raH876wghqoipcD6H33ZjKCi 60WMODBAoHp3O6PAs6GFIRhLiAw+JgTp6F8sNMDZYzgatE+Venlgpk2uscpTrRaHj4OG a9Zw== X-Gm-Message-State: ALoCoQmMdNbmiEqsC1fgaVG7xfp3SRTVvryuQ8hiYS/Hyhy+cR/E7j2EBI2pZY+5+XiWFW79DMdl X-Received: by 10.180.79.10 with SMTP id f10mr930438wix.3.1438256338432; Thu, 30 Jul 2015 04:38:58 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.44.169 with SMTP id f9ls169106lam.93.gmail; Thu, 30 Jul 2015 04:38:58 -0700 (PDT) X-Received: by 10.152.5.228 with SMTP id v4mr43634248lav.36.1438256338187; Thu, 30 Jul 2015 04:38:58 -0700 (PDT) Received: from mail-lb0-f180.google.com (mail-lb0-f180.google.com. [209.85.217.180]) by mx.google.com with ESMTPS id k9si593609lah.119.2015.07.30.04.38.58 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 30 Jul 2015 04:38:58 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.180 as permitted sender) client-ip=209.85.217.180; Received: by lbbud7 with SMTP id ud7so21228389lbb.3 for ; Thu, 30 Jul 2015 04:38:58 -0700 (PDT) X-Received: by 10.112.166.106 with SMTP id zf10mr43643341lbb.36.1438256338091; Thu, 30 Jul 2015 04:38:58 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.7.198 with SMTP id l6csp539233lba; Thu, 30 Jul 2015 04:38:57 -0700 (PDT) X-Received: by 10.180.90.81 with SMTP id bu17mr5500727wib.35.1438256336177; Thu, 30 Jul 2015 04:38:56 -0700 (PDT) Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id fm3si2825177wic.41.2015.07.30.04.38.55 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 30 Jul 2015 04:38:56 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Received: from localhost ([::1]:39111 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZKmAo-0002g5-Sz for patch@linaro.org; Thu, 30 Jul 2015 07:38:54 -0400 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 Received: from d03dlp03.boulder.ibm.com (9.17.202.179) by e39.co.us.ibm.com (192.168.1.139) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Thu, 30 Jul 2015 05:34:57 -0600 X-Helo: d03dlp03.boulder.ibm.com X-MailFrom: mdroth@linux.vnet.ibm.com X-RcptTo: qemu-stable@nongnu.org Received: from b03cxnp08028.gho.boulder.ibm.com (b03cxnp08028.gho.boulder.ibm.com [9.17.130.20]) by d03dlp03.boulder.ibm.com (Postfix) with ESMTP id 946F019D8026; Thu, 30 Jul 2015 05:25:55 -0600 (MDT) Received: from d03av02.boulder.ibm.com (d03av02.boulder.ibm.com [9.17.195.168]) by b03cxnp08028.gho.boulder.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id t6UBY7DQ38994170; Thu, 30 Jul 2015 04:34:07 -0700 Received: from d03av02.boulder.ibm.com (localhost [127.0.0.1]) by d03av02.boulder.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id t6UBYu7Q005678; Thu, 30 Jul 2015 05:34:56 -0600 Received: from localhost ([9.80.93.218]) by d03av02.boulder.ibm.com (8.14.4/8.14.4/NCO v10.0 AVin) with ESMTP id t6UBYtZ0005568; Thu, 30 Jul 2015 05:34:55 -0600 From: Michael Roth To: qemu-devel@nongnu.org Date: Thu, 30 Jul 2015 06:32:30 -0500 Message-Id: <1438255988-10418-16-git-send-email-mdroth@linux.vnet.ibm.com> X-Mailer: git-send-email 1.9.1 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> X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 15073011-0033-0000-0000-0000055478F1 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 32.97.110.160 Cc: Shannon Zhao , "Michael S. Tsirkin" , qemu-stable@nongnu.org, Shannon Zhao Subject: [Qemu-devel] [PATCH 15/53] hw/acpi/aml-build: Fix memory leak X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: mdroth@linux.vnet.ibm.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.180 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 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)