From: Daniel Stenberg Date: Sun, 4 Jan 2026 11:24:41 +0000 (+0100) Subject: mk-lib1521: make the test set each string option again X-Git-Tag: curl-8_18_0~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=20ac5531cdec757fbaa38eb667e62d902ad9c52d;p=thirdparty%2Fcurl.git 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 --- 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 = <