From nobody Wed Nov 5 14:51:04 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1535142744540659.9905295112299; Fri, 24 Aug 2018 13:32:24 -0700 (PDT) Received: from localhost ([::1]:43539 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ftIki-0002Jz-9n for importer@patchew.org; Fri, 24 Aug 2018 16:32:16 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44409) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ftIjd-0001sN-Ju for qemu-devel@nongnu.org; Fri, 24 Aug 2018 16:31:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ftIja-0004Wd-9L for qemu-devel@nongnu.org; Fri, 24 Aug 2018 16:31:09 -0400 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]:50031) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ftIja-0004WS-1x; Fri, 24 Aug 2018 16:31:06 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 2993C3DA; Fri, 24 Aug 2018 16:31:04 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Fri, 24 Aug 2018 16:31:04 -0400 Received: from localhost (flamenco.cs.columbia.edu [128.59.20.216]) by mail.messagingengine.com (Postfix) with ESMTPA id E5632E47C1; Fri, 24 Aug 2018 16:31:01 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=braap.org; h=cc :date:from:message-id:subject:to:x-me-sender:x-me-sender :x-sasl-enc; s=mesmtp; bh=wO5MiAHB0dDLKLLcQ0ssgf03NwV6t0VbH44uxU zSpfk=; b=CVxrYxSunvp7kkYYR8Zs1Yl3gWa3cNTvgv2OQsRslWOTotJTCnIkQZ nJTQ6tU5VYKuHaVsGD71JpvfVZd+7VB20VZuZsVdbBZuM8RJ02KpfdfLZiZj4ZLa kuveZszTaAJ0/IKsDY0a+W2S5vHCdQwFyBQOp9DzP8C9037SSGRYQ= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:date:from:message-id:subject:to :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=wO5MiAHB0dDLKLLcQ 0ssgf03NwV6t0VbH44uxUzSpfk=; b=ZjzGjGMm+ZaV92dCCyQbCk/E7AmFCRhoy uegeZ7No/9znSgl9A2bTpyvSb6Awuu+Cuf5uLlx9il+26fOqolbOap1194VBNtJJ JPZF7unMwhIwMMbuZ4gkWD4qzSHgi8taTu/bFvVFCK9X5AbVeExDz0RyuSnl0PPV CXIp49SSMUhvGpnYgyotlwiXRyrYtopLFFdgjvW/wiPTzu8kY4hUu4Kpuw7mRhy1 UEqL81oEcAoGL6b/CgFnOh6/I++IImHfQV95LEVlCOSB3cXrS1r5HpVoMBrViLfL GtOd6wmSWUluP6r6UvSziu/GbXHNLQ7ScEvrATpUBUfapjsozqsEw== X-ME-Proxy: X-ME-Sender: From: "Emilio G. Cota" To: qemu-devel@nongnu.org Date: Fri, 24 Aug 2018 16:31:01 -0400 Message-Id: <20180824203101.30125-1-cota@braap.org> X-Mailer: git-send-email 2.17.1 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 64.147.123.25 Subject: [Qemu-devel] [PATCH] spapr: fix leak of rev array X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Peter Maydell , Paolo Bonzini , qemu-ppc@nongnu.org, Alexander Graf , David Gibson Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail: RSF_0 Z_629925259 SPT_0 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Introduced in 04d595b300 ("spapr: do not use CPU_FOREACH_REVERSE", 2018-08-23) Fixes: CID1395181 Reported-by: Peter Maydell Signed-off-by: Emilio G. Cota Reviewed-by: Richard Henderson --- hw/ppc/spapr.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/ppc/spapr.c b/hw/ppc/spapr.c index 4edb6c7d16..505d4c84e5 100644 --- a/hw/ppc/spapr.c +++ b/hw/ppc/spapr.c @@ -607,6 +607,7 @@ static void spapr_populate_cpus_dt_node(void *fdt, sPAP= RMachineState *spapr) spapr_populate_cpu_dt(cs, fdt, offset, spapr); } =20 + g_free(rev); } =20 static uint32_t spapr_pc_dimm_node(MemoryDeviceInfoList *list, ram_addr_t = addr) --=20 2.17.1