| Message ID | 20260416023021.626949-33-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=1776306691; bh=dK+vqMg0f+nggMqZjIpwUQnTHmyKasGyovDJA2YSKRA=; 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=RHVOaNXTUXxNc7PoAwaYCuD3xHVVcDTnCkDo+Zgdr4xMD8E0rAGa+aCXPpR4rUrN3 Af/tRQRTXa2fdYsiAbDmTHe3d+wpK9YEOiPgpcctIwDrzpPGGL7bKWqE2oo6Q6khMr CONb5TYW6Ud29CXldiMzNCyoZHdlM5RFF0Nm/UkU= Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 8E6B86A4A5 for <u-boot-concept@u-boot.org>; Wed, 15 Apr 2026 20:31:31 -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 Wx5rHLySbTKZ for <u-boot-concept@u-boot.org>; Wed, 15 Apr 2026 20:31:31 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1776306689; bh=dK+vqMg0f+nggMqZjIpwUQnTHmyKasGyovDJA2YSKRA=; 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=SLcVogyw+rfPhF3WxNIHJzqpZ7gGx6J1TMxDp9w6x3O4NoxejZiTDQ1ZiODfVh2vM AKDI0RcvBd/y+J+nJd5jkFUvJkojICtATmWUkO405MVciGiipsWCWypKcjizsGoiyh /eRqj9tHN8SPefJco+gMev8lF2dfht+r1hnXlIps= Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 91FA26A4A6 for <u-boot-concept@u-boot.org>; Wed, 15 Apr 2026 20:31:29 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1776306686; bh=FGSXd8vzLe1tE0GZsKcRuhKPg8WWIKBG91+xgtL5G14=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=pZGP1cfNULrfZRatdbxN6AiI5TPuW/8QiVY+4vhMf3oCBqCIBQZhHR746TYfwyMfs OHuQA/xNu+oWRIQ79lx4HRguKpqZaqvJec5zGn3rlhyd4K6M5clVoXquDdlN9ajq/P HBJGN8Mxpab2H4sRLomIDSI7vti1yKc6V44wnaW4= Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 5BEFF6A4DA; Wed, 15 Apr 2026 20:31:26 -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 qmWOMjHlPKnl; Wed, 15 Apr 2026 20:31:26 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1776306683; bh=+DCf/tLap87ZRwd6OcaAvTBrPb06GawnJf0poM8Ucec=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=bEkcrpop74ZXNvG1bLvXTSwf3Xg7fyGn0aMKzLQXDTUg0r/EeM6Y2G2/aMytQ3BZC HB406TPCO5IABxEEqoiqLExrrEzMG4v19pl5Cdl4vvziRLsleNwmEip8djTP4UyiBz l4sZi7r1J7Ep5oU3CrOo/nFp7umXqcm0PDODe+ms= Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id D30976A4AE; Wed, 15 Apr 2026 20:31:22 -0600 (MDT) From: Simon Glass <sjg@u-boot.org> To: U-Boot Concept <concept@u-boot.org> Date: Wed, 15 Apr 2026 20:29:57 -0600 Message-ID: <20260416023021.626949-33-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: Y6JX3VTKZXS3OPYKTUPDLNBPOBGE2ONU X-Message-ID-Hash: Y6JX3VTKZXS3OPYKTUPDLNBPOBGE2ONU 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 32/33] test: setexpr: Unset test env var in str_long() 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/Y6JX3VTKZXS3OPYKTUPDLNBPOBGE2ONU/> 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 uses 'setexpr.s' to set the env variable 'fred' to a 64K string, but never unsets it. The env machinery allocated the value, so running the test leaves 64K hanging off the env hash forever. Unset 'fred' at the end of the test. Signed-off-by: Simon Glass <sjg@chromium.org> --- test/cmd/setexpr.c | 1 + 1 file changed, 1 insertion(+)
diff --git a/test/cmd/setexpr.c b/test/cmd/setexpr.c index 93b0c4b68f5..4e3a2f7aaa4 100644 --- a/test/cmd/setexpr.c +++ b/test/cmd/setexpr.c @@ -360,6 +360,7 @@ static int setexpr_test_str_long(struct unit_test_state *uts) ut_asserteq(64 << 10, strlen(val)); unmap_sysmem(buf); + env_set("fred", NULL); return 0; }