From patchwork Wed Jun 3 13:08:27 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Tokarev X-Patchwork-Id: 49456 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f199.google.com (mail-lb0-f199.google.com [209.85.217.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 81A1220BE7 for ; Wed, 3 Jun 2015 13:10:02 +0000 (UTC) Received: by lbbqq2 with SMTP id qq2sf2655224lbb.0 for ; Wed, 03 Jun 2015 06:10:01 -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=EaIe46SfVcFgcwGL6oo8z53PKo9bY8ypRazVNO1t5q8=; b=QHx3jdFmhTHDrYeGNvynEXLeiJ8FxUhHLl1i8+9a+8rpL+V+tzR7QdjyCNrWZ62PoC O9bEeQKNIH0eH0bSa+vvWlmzuGM0EGlHkNDsQRco1jCzzzeN6sqlT4MC/GZAKk+6gRY1 yOZmrAkMcQPVUjmY9V8mEB6bWaJVAoZ2lv8/J4xaxwXFNPCCV05lk6raFCckfrPk0H1p ZCPTWRgLW3mZTGko15Eqp39bRjvO8JjdB33DwlVB5E+bJF8M16o/a7LhefyBgijt5GFl jJq+XdUtpehr+Q2edv4cEs/jsp4Hes8KjX2fPRXKGA+GoBjTqWASWjH8ljopZbbmX97S QBmw== X-Gm-Message-State: ALoCoQnj7nNsvynbQyWgvfsGJb+ZmEuj3HHuirnyZf16SrlIE1RLf69/ujnhdRyqq1o3mBSGQg6M X-Received: by 10.112.161.105 with SMTP id xr9mr30774882lbb.20.1433337001432; Wed, 03 Jun 2015 06:10:01 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.37.133 with SMTP id y5ls54202laj.19.gmail; Wed, 03 Jun 2015 06:10:01 -0700 (PDT) X-Received: by 10.152.164.193 with SMTP id ys1mr2651872lab.65.1433337001294; Wed, 03 Jun 2015 06:10:01 -0700 (PDT) Received: from mail-lb0-f169.google.com (mail-lb0-f169.google.com. [209.85.217.169]) by mx.google.com with ESMTPS id xr5si17997223lbb.76.2015.06.03.06.10.01 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 03 Jun 2015 06:10:01 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.169 as permitted sender) client-ip=209.85.217.169; Received: by lbcmx3 with SMTP id mx3so6559644lbc.1 for ; Wed, 03 Jun 2015 06:10:01 -0700 (PDT) X-Received: by 10.152.4.137 with SMTP id k9mr31483907lak.29.1433337001172; Wed, 03 Jun 2015 06:10:01 -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 hn6csp3856562lbb; Wed, 3 Jun 2015 06:10:00 -0700 (PDT) X-Received: by 10.55.18.155 with SMTP id 27mr59453936qks.36.1433336997296; Wed, 03 Jun 2015 06:09:57 -0700 (PDT) Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id q5si536485qce.7.2015.06.03.06.09.56 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 03 Jun 2015 06:09:57 -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]:35392 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z08Qe-0000UB-3l for patch@linaro.org; Wed, 03 Jun 2015 09:09:56 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:32791) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z08Ph-0007xJ-1T for qemu-devel@nongnu.org; Wed, 03 Jun 2015 09:08:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z08Pd-0004vF-LP for qemu-devel@nongnu.org; Wed, 03 Jun 2015 09:08:56 -0400 Received: from isrv.corpit.ru ([86.62.121.231]:36757) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z08Pd-0004uU-E9; Wed, 03 Jun 2015 09:08:53 -0400 Received: from tsrv.tls.msk.ru (tsrv.tls.msk.ru [192.168.177.2]) by isrv.corpit.ru (Postfix) with ESMTP id BB9324079D; Wed, 3 Jun 2015 16:08:52 +0300 (MSK) Received: from tls.msk.ru (mjt.vpn.tls.msk.ru [192.168.177.99]) by tsrv.tls.msk.ru (Postfix) with SMTP id A053EA51; Wed, 3 Jun 2015 16:08:52 +0300 (MSK) Received: (nullmailer pid 27426 invoked by uid 1000); Wed, 03 Jun 2015 13:08:52 -0000 From: Michael Tokarev To: qemu-devel@nongnu.org Date: Wed, 3 Jun 2015 16:08:27 +0300 Message-Id: X-Mailer: git-send-email 2.1.4 In-Reply-To: References: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 86.62.121.231 Cc: qemu-trivial@nongnu.org, Michael Tokarev , Shannon Zhao , Shannon Zhao Subject: [Qemu-devel] [PULL 07/30] hw/i386/acpi-build: decref after use 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: mjt@tls.msk.ru 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.169 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 valgrind complains about: ==16447== 48 bytes in 2 blocks are definitely lost in loss record 2,033 of 3,310 ==16447== at 0x4C2845D: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so) ==16447== by 0x2E4FD7: malloc_and_trace (vl.c:2546) ==16447== by 0x64C770E: g_malloc (in /usr/lib64/libglib-2.0.so.0.3600.3) ==16447== by 0x53EC3F: qint_from_int (qint.c:33) ==16447== by 0x53B426: qmp_output_type_int (qmp-output-visitor.c:162) ==16447== by 0x539257: visit_type_uint32 (qapi-visit-core.c:147) ==16447== by 0x471D07: property_get_uint32_ptr (object.c:1651) ==16447== by 0x47000C: object_property_get (object.c:822) ==16447== by 0x472428: object_property_get_qobject (qom-qobject.c:37) ==16447== by 0x25701A: build_append_pci_bus_devices (acpi-build.c:520) ==16447== by 0x25902E: build_ssdt (acpi-build.c:1004) ==16447== by 0x25A0A8: acpi_build (acpi-build.c:1420) Signed-off-by: Shannon Zhao Signed-off-by: Shannon Zhao Reviewed-by: Igor Mammedov Signed-off-by: Michael Tokarev --- hw/i386/acpi-build.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/i386/acpi-build.c b/hw/i386/acpi-build.c index 2c7399b..15fd4c5 100644 --- a/hw/i386/acpi-build.c +++ b/hw/i386/acpi-build.c @@ -596,6 +596,7 @@ static void build_append_pci_bus_devices(Aml *parent_scope, PCIBus *bus, } } aml_append(parent_scope, method); + qobject_decref(bsel); } static void