[PATCH v2] Move libc_freeres_ptrs and libc_subfreeres to hidden/weak functions
Adhemerval Zanella Netto
adhemerval.zanella@linaro.org
Tue Dec 13 15:45:56 GMT 2022
On 13/12/22 09:30, Andreas Schwab wrote:
> On Dez 13 2022, Adhemerval Zanella via Libc-alpha wrote:
>
>> +#define set_freeres_declare_name(__name) \
>> + __name ## _aux
>> +#define set_freeres_declare_ptr(__name, __ptr) \
>> + void set_freeres_declare_name (__name) (void) \
>> + { \
>> + if (__ptr != NULL) \
>> + free (__ptr); \
>
> You can call free with NULL just fine.
>
Indeed, I will fix it.
More information about the Libc-alpha
mailing list