* lib/glob.c (glob): Free dirname before returning.
Reported by Coverity and Tim Rühsen.
+2017-07-06 Bruno Haible <bruno@clisp.org>
+
+ glob: Fix more memory leaks.
+ * lib/glob.c (glob): Free dirname before returning.
+ Reported by Coverity and Tim Rühsen.
+
2017-07-06 Paul Eggert <eggert@cs.ucla.edu>
parse-datetime: fix uninit var bug
p = mempcpy (pglob->gl_pathv[newcount], dirname, dirlen);
p[0] = '/';
p[1] = '\0';
+ if (__glibc_unlikely (malloc_dirname))
+ free (dirname);
}
else
{