Reported by Tim Rühsen in
<https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00207.html>.
* m4/glob.m4 (gl_GLOB): Free allocated memory before returning.
+2020-05-21 Bruno Haible <bruno@clisp.org>
+
+ glob: Avoid wrong configure results with "clang -fsanitize=leak".
+ Reported by Tim Rühsen in
+ <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00207.html>.
+ * m4/glob.m4 (gl_GLOB): Free allocated memory before returning.
+
2020-05-21 Bruno Haible <bruno@clisp.org>
fchownat: Support clang -fsanitize=implicit-integer-sign-change better.
-# glob.m4 serial 23
+# glob.m4 serial 24
dnl Copyright (C) 2005-2007, 2009-2020 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
[[glob_t found;
if (glob ("conf*-globtest", 0, NULL, &found) == GLOB_NOMATCH)
return 1;
+ globfree (&found);
]])],
[gl_cv_glob_lists_symlinks=yes],
[gl_cv_glob_lists_symlinks=no],