From 8132d19ab593818a4e0f0aecf0542a595d3fca94 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Fri, 22 Nov 2024 12:28:16 +1030 Subject: [PATCH] configure: make configuration with address sanitizer find zlib. The test program has a leak, so address sanitizer complains and makes it "fail" the zlib detection test! Signed-off-by: Rusty Russell --- configure | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/configure b/configure index 8c97ca5fb..a2902e6c6 100755 --- a/configure +++ b/configure @@ -378,7 +378,11 @@ code= int main(void) { gzFile f = gzopen("/dev/null", "wb"); - return f != NULL ? 0 : 1; + if (f != NULL) { + gzclose(f); + return 0; + } + return 1; } /*END*/ var=HAVE_GOOD_LIBSODIUM