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

Dmitry Kovalenko d.kovalenko@postgrespro.ru
Mon Jun 2 12:30:58 GMT 2025


>> -locale_t
>> -__newlocale (int category_mask, const char *locale, locale_t base)
>> +static locale_t
>> +__newlocale_1 (int category_mask, const char *locale, locale_t base, char ** const locale_path_ptr)
> Please fold.

Is this code style OK?

-----------

static locale_t
__newlocale_1 (int category_mask, const char *locale, locale_t base,
               char ** const locale_path_ptr)
{
   /* Intermediate memory for result.  */
-----------

Thanks&Regards,

Dmitry Kovalenko

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://sourceware.org/pipermail/libc-alpha/attachments/20250602/0705cc8d/attachment.htm>


More information about the Libc-alpha mailing list