| Message ID | 20260416023021.626949-28-sjg@u-boot.org |
|---|---|
| State | New |
| Headers |
Return-Path: <concept-bounces+u-boot-concept=u-boot.org@u-boot.org> X-Original-To: u-boot-concept@u-boot.org Delivered-To: u-boot-concept@u-boot.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1776306687; bh=wXAaP8U9NW6wN3Etguo8uHSykQYr4ERICRGK2A2eD2U=; h=From:To:Date:In-Reply-To:References:CC:Subject:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=MqTZebMl2i5gO11+0SwtFqdjkCzYIjdcE4lOmotlQcJ9pMlHtw3zN0jiDQmIywfSC qKCP1U59ZDIuIQLqZ+reZyBGwynf1gBPLA6SHB5lzYamVBeRX0IFoDE1ZrU2/Y8/EY jc02/+91y7Djw/wf98p/BbsA5z0mtg+jNsONOd1Q= Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id BF90D6A4B0 for <u-boot-concept@u-boot.org>; Wed, 15 Apr 2026 20:31:27 -0600 (MDT) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10024) with ESMTP id HcqxBF_JnibN for <u-boot-concept@u-boot.org>; Wed, 15 Apr 2026 20:31:27 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1776306685; bh=wXAaP8U9NW6wN3Etguo8uHSykQYr4ERICRGK2A2eD2U=; h=From:To:Date:In-Reply-To:References:CC:Subject:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=ev4jljsCCzt2F2rEpV/FDbf/rnQoWj14JHP8ud772g/sZoDk581H+bjnTV0y6OzIt uB934Z9KJt3IFhRvleL6vsvwnSB1IxRgL7gTqDf9oZukAW/39nNls87jn39KfgyQTZ kzbpG57zXEijmBUVjLwHRynpBBZu3fSJYHzlvLrw= Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id F03E06A4D0 for <u-boot-concept@u-boot.org>; Wed, 15 Apr 2026 20:31:25 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1776306680; bh=e+szK/ES+elyhSJThCANKKGDxA1xDLNc3ZP79r0iluA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=gXqkPQ1ixolNefcYOBWI8Lp5+HKV5mT9wD04NfdLMlbAHBuDnVuXu8aLRava/xary xnzmnryBkaltqDjaJuz2j7mifZYJgsOUEk3DwC9tj66jKyYIDTp99D1nk2KrllfOaa US9ysRjU8h6CUS/cZCV1pnbgdiEM3II7mMp+XA58= Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 5E8826A4BC; Wed, 15 Apr 2026 20:31:20 -0600 (MDT) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10026) with ESMTP id 4PHN5wfnbnUj; Wed, 15 Apr 2026 20:31:20 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1776306677; bh=PGwGhHjjIH3ll9pTTslLV2JNUWvb/9ENll006MJwPfQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=s7Arnu1kK5Fif/NL6CRV7p4lfS6gldtZDGFQJsdHSv3mP7qE7qPJIxsfJ7wK/bB/T fsaIIYtbJSEjA+1T3rjqdtJm68zN92Sx3/ab9mOU55Yh6iH8yPZeApq/WybeufRiZc Iy/PE7AFPsfq1Oisimdez/vm1VchtAAE9J1OJ+1Q= Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id D8D8A6A4AE; Wed, 15 Apr 2026 20:31:16 -0600 (MDT) From: Simon Glass <sjg@u-boot.org> To: U-Boot Concept <concept@u-boot.org> Date: Wed, 15 Apr 2026 20:29:52 -0600 Message-ID: <20260416023021.626949-28-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260416023021.626949-1-sjg@u-boot.org> References: <20260416023021.626949-1-sjg@u-boot.org> MIME-Version: 1.0 Message-ID-Hash: RA4W7OELTDG3YZKGV6ADI6FGLMQRSZLL X-Message-ID-Hash: RA4W7OELTDG3YZKGV6ADI6FGLMQRSZLL X-MailFrom: sjg@u-boot.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: Simon Glass <sjg@chromium.org> X-Mailman-Version: 3.3.10 Precedence: list Subject: [Concept] [PATCH 27/33] test: upl: Dispose oftrees in upl_test_base() List-Id: Discussion and patches related to U-Boot Concept <concept.u-boot.org> Archived-At: <https://lists.u-boot.org/archives/list/concept@u-boot.org/message/RA4W7OELTDG3YZKGV6ADI6FGLMQRSZLL/> List-Archive: <https://lists.u-boot.org/archives/list/concept@u-boot.org/> List-Help: <mailto:concept-request@u-boot.org?subject=help> List-Owner: <mailto:concept-owner@u-boot.org> List-Post: <mailto:concept@u-boot.org> List-Subscribe: <mailto:concept-join@u-boot.org> List-Unsubscribe: <mailto:concept-leave@u-boot.org> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit |
| Series |
Fix memory leaks and test pollution in sandbox tests
|
|
Commit Message
Simon Glass
April 16, 2026, 2:29 a.m. UTC
From: Simon Glass <sjg@chromium.org> This test builds two live trees via upl_create_handoff_tree() and oftree_from_fdt() but never disposes them, leaking most of the node and property allocations on each run. Dispose of both before returning. Signed-off-by: Simon Glass <sjg@chromium.org> --- test/boot/upl.c | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/test/boot/upl.c b/test/boot/upl.c index e2dc3d51eda..0730f102a78 100644 --- a/test/boot/upl.c +++ b/test/boot/upl.c @@ -352,6 +352,8 @@ static int upl_test_base(struct unit_test_state *uts) ut_assertok(upl_read_handoff(&check, check_tree)); ut_assertok(compare_upl(uts, &upl, &check)); + oftree_dispose(check_tree); + oftree_dispose(tree); abuf_uninit(&buf); return 0;