From patchwork Sun May 31 18:37:57 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Michael S. Tsirkin" X-Patchwork-Id: 49273 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f198.google.com (mail-lb0-f198.google.com [209.85.217.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id A89B1214D3 for ; Sun, 31 May 2015 18:57:36 +0000 (UTC) Received: by lbbti3 with SMTP id ti3sf29736006lbb.1 for ; Sun, 31 May 2015 11:57:35 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:date:from:to:message-id:references :mime-version:content-type:content-disposition:in-reply-to: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=fbbvtCEc14+2dCdygEMZIW50yQNIRlSQmr+UsyHime4=; b=W2ro34h0duJSrbUpTFk5pE+NhA/cbtUnqAqwHGrRb3peBDXR9iPcSxluA0MIy9GbO2 3bf3oCEyLbDomgzVNl8Dc+/CwHbSPk6h9Gd48qSfuIPVK3WZhqDLG3Ve/P5pw4zDVaNs b+fMHbq1hy+8yEGq/jK7+KOEyvpeWSarjsnrNPy0egcLd8Vb7ndxzPULMUJB7+9JTsET BjB5PAeecbPKlYgosL8rH8SYoxKUh4d0PEUcHx6HxAEvnTGFDNu7VvTBj4t+5WETM/Ae Zzt2KbV3fSCfdI0A5LNrL7m+HAWvHF/CBTCUGyKf3pFWyWyBhy/mgyNDcUoefE2vgsNk GmVQ== X-Gm-Message-State: ALoCoQlqDkBGA0xYNGKFmq8aI/qzuRAHQgo9XteZxgjhuEjAX+/mfmCaYIkT1OjEjwI4WPN/lUu/ X-Received: by 10.112.122.13 with SMTP id lo13mr3319083lbb.5.1433098655178; Sun, 31 May 2015 11:57:35 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.203.133 with SMTP id kq5ls527645lac.102.gmail; Sun, 31 May 2015 11:57:35 -0700 (PDT) X-Received: by 10.112.211.134 with SMTP id nc6mr17583340lbc.52.1433098654996; Sun, 31 May 2015 11:57:34 -0700 (PDT) Received: from mail-la0-f53.google.com (mail-la0-f53.google.com. [209.85.215.53]) by mx.google.com with ESMTPS id lf11si1530021lac.125.2015.05.31.11.57.34 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 31 May 2015 11:57:34 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.53 as permitted sender) client-ip=209.85.215.53; Received: by laat2 with SMTP id t2so87421403laa.1 for ; Sun, 31 May 2015 11:57:34 -0700 (PDT) X-Received: by 10.112.222.133 with SMTP id qm5mr17673142lbc.86.1433098654777; Sun, 31 May 2015 11:57:34 -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.108.230 with SMTP id hn6csp1799498lbb; Sun, 31 May 2015 11:57:33 -0700 (PDT) X-Received: by 10.140.150.78 with SMTP id 75mr21354024qhw.10.1433098653557; Sun, 31 May 2015 11:57:33 -0700 (PDT) Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id 131si11239050qhw.45.2015.05.31.11.57.33 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Sun, 31 May 2015 11:57:33 -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]:43072 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yz8QO-0001WR-Oc for patch@linaro.org; Sun, 31 May 2015 14:57:32 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33136) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yz87V-0002TZ-Lq for qemu-devel@nongnu.org; Sun, 31 May 2015 14:38:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yz87U-0005g3-TB for qemu-devel@nongnu.org; Sun, 31 May 2015 14:38:01 -0400 Received: from mx1.redhat.com ([209.132.183.28]:39519) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yz87U-0005fz-Nx for qemu-devel@nongnu.org; Sun, 31 May 2015 14:38:00 -0400 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (Postfix) with ESMTPS id 56E7F38C378; Sun, 31 May 2015 18:38:00 +0000 (UTC) Received: from redhat.com (ovpn-116-35.ams2.redhat.com [10.36.116.35]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with SMTP id t4VIbvCc020665; Sun, 31 May 2015 14:37:58 -0400 Date: Sun, 31 May 2015 20:37:57 +0200 From: "Michael S. Tsirkin" To: qemu-devel@nongnu.org Message-ID: <1433097192-8988-57-git-send-email-mst@redhat.com> References: <1433097192-8988-1-git-send-email-mst@redhat.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1433097192-8988-1-git-send-email-mst@redhat.com> X-Mutt-Fcc: =sent X-Scanned-By: MIMEDefang 2.68 on 10.5.11.23 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 209.132.183.28 Cc: Peter Maydell , Igor Mammedov , Shannon Zhao , Shannon Zhao Subject: [Qemu-devel] [PULL 56/57] 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: mst@redhat.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.215.53 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 --- 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 f26466a..2bebf23 100644 --- a/hw/acpi/aml-build.c +++ b/hw/acpi/aml-build.c @@ -296,6 +296,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)