From 20ac5531cdec757fbaa38eb667e62d902ad9c52d Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Sun, 4 Jan 2026 12:24:41 +0100 Subject: [PATCH] mk-lib1521: make the test set each string option again In an attempt to make sure that setting it again does not leak memory. The second string is set to `""`, which is done so that this now finds the problem reported in #20179. Ref: #20179 Closes #20181 --- tests/libtest/mk-lib1521.pl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/libtest/mk-lib1521.pl b/tests/libtest/mk-lib1521.pl index a926049014..0a0c48b2f2 100755 --- a/tests/libtest/mk-lib1521.pl +++ b/tests/libtest/mk-lib1521.pl @@ -449,6 +449,8 @@ while() { my $ifpresent = "${w2}if(present(first)) {\n"; my $pref = "${w3}result =\n". "${w3} curl_easy_setopt(curl, $name,"; + my $ignoreset = "${w3}/* set string again to check for leaks */\n". + "${w3}(void)curl_easy_setopt(curl, $name,"; my $i = ' ' x (length($w) + 25); my $fcheck = <