[PATCH v9] locale: memory leak in newlocale [BZ #25770]

Florian Weimer fweimer@redhat.com
Thu Jun 5 10:37:01 GMT 2025


* Dmitry Kovalenko:

>  
>  The first assert
>
>    assert (locale_path_ptr != NULL);
>
>  is not removed for some reason. This looks like a GCC bug to me. GCC
>  is generally able to determine that addresses on the stack cannot be
>  null.
>
> Even when NDEBUG is defined?

No, then it gets written out by the preprocessor.

But I think Andreas doesn't want the assert compiled in even without
-DNDEBUG.

Thanks,
Florian



More information about the Libc-alpha mailing list