From patchwork Mon Jun 1 12:25:44 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: 49330 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f71.google.com (mail-wg0-f71.google.com [74.125.82.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 486D8218FC for ; Mon, 1 Jun 2015 12:54:16 +0000 (UTC) Received: by wgla2 with SMTP id a2sf33250570wgl.1 for ; Mon, 01 Jun 2015 05:54:15 -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=doRGWGzPer4S+bNqj0hRgRSCZIXt2BfG3ArbMLQ1L7+hkS00Sm8WO32HTD3qldxGtM bDdr2rKr+WpMS87hM4c3fIRi56O3fUsDsZ+fvC9NqWzKyXi63QctmAs8tp3BH1Z6Cwec Q/vC0HV5BmwD+8LTlt3fJC7uWPV9hlVw6rRcDj3t4mRNnb9MgtBI+feswzvE6QGsdCTs n/tfPQp/dzYTuTUXcQ8PoxYSlJ2pv8VYH8fuY2VT9TOvmJDXsQNAk0HvaZlnLjOAb08p QTB/ThNiuRtvHh/sz66ysX16uvNki5vDVIIQSKHHsrrajXjmAO4Hj4hWUBr4ZzF1csJ8 xjuQ== X-Gm-Message-State: ALoCoQnv3lp6GVn/+RswpXeB+4Y8MrrhQihowxzUYX5aR7UVk2irw7dyVYNFwoKQKU4aYOemffzw X-Received: by 10.180.216.12 with SMTP id om12mr11526666wic.1.1433163255636; Mon, 01 Jun 2015 05:54:15 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.120.71 with SMTP id la7ls605134lab.25.gmail; Mon, 01 Jun 2015 05:54:15 -0700 (PDT) X-Received: by 10.152.204.40 with SMTP id kv8mr20576044lac.113.1433163255376; Mon, 01 Jun 2015 05:54:15 -0700 (PDT) Received: from mail-la0-f46.google.com (mail-la0-f46.google.com. [209.85.215.46]) by mx.google.com with ESMTPS id e9si12231019laa.104.2015.06.01.05.54.15 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 01 Jun 2015 05:54:15 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.46 as permitted sender) client-ip=209.85.215.46; Received: by labko7 with SMTP id ko7so96975839lab.2 for ; Mon, 01 Jun 2015 05:54:15 -0700 (PDT) X-Received: by 10.152.36.161 with SMTP id r1mr20888932laj.88.1433163255138; Mon, 01 Jun 2015 05:54:15 -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 hn6csp2295011lbb; Mon, 1 Jun 2015 05:54:14 -0700 (PDT) X-Received: by 10.140.98.237 with SMTP id o100mr23193225qge.1.1433163253830; Mon, 01 Jun 2015 05:54:13 -0700 (PDT) Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id em4si12949840qcb.5.2015.06.01.05.54.13 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 01 Jun 2015 05:54:13 -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]:52160 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YzPEL-0005Gt-2S for patch@linaro.org; Mon, 01 Jun 2015 08:54:13 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35227) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YzOmu-0002DD-91 for qemu-devel@nongnu.org; Mon, 01 Jun 2015 08:25:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YzOmq-00008v-2v for qemu-devel@nongnu.org; Mon, 01 Jun 2015 08:25:52 -0400 Received: from mx1.redhat.com ([209.132.183.28]:59595) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YzOmp-00008i-Oy for qemu-devel@nongnu.org; Mon, 01 Jun 2015 08:25:47 -0400 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (Postfix) with ESMTPS id 6F4FA8F2EC; Mon, 1 Jun 2015 12:25:47 +0000 (UTC) Received: from redhat.com (ovpn-116-67.ams2.redhat.com [10.36.116.67]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with SMTP id t51CPj36021134; Mon, 1 Jun 2015 08:25:45 -0400 Date: Mon, 1 Jun 2015 14:25:44 +0200 From: "Michael S. Tsirkin" To: qemu-devel@nongnu.org Message-ID: <1433161230-29421-57-git-send-email-mst@redhat.com> References: <1433161230-29421-1-git-send-email-mst@redhat.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1433161230-29421-1-git-send-email-mst@redhat.com> X-Mutt-Fcc: =sent X-Scanned-By: MIMEDefang 2.68 on 10.5.11.22 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 v2 56/60] 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.46 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)