[COMMITED] posix: Fix memory leak a memory leak in glob.
Collin Funk
collin.funk1@gmail.com
Wed Oct 22 16:55:48 GMT 2025
Hi Adhemerval,
Adhemerval Zanella Netto <adhemerval.zanella@linaro.org> writes:
> On 21/10/25 23:52, Collin Funk wrote:
>> From: Bruno Haible <bruno@clisp.org>
>>
>> Found by Coverity in Gnulib.
>>
>> * posix/glob.c (__glob): Add scratch_buffer_free invocation, to match
>> scratch_buffer_init invocation.
>>
>> Reviewed-by: Collin Funk <collin.funk1@gmail.com>
>
> Hi Collin,
>
> Is there any other fixes we can import from gnulib? It has been some time
> since I synced our shared files with gnulib.
The sources for glob are almost identical. The only differences are the
use of stdckdint.h in Gnulib.
I believe that the regex code is fairly close too.
The rest could probably use some updating.
Collin
More information about the Libc-alpha
mailing list