i work on a cortex m system (GCC+newlib-nano (-specs=nano.specs)).
there i use - gmtime - mktime - localtime
i face the following issues:
A.) gmtime uses malloc to allocate some ram, but never ever free that memory again.
B.) mktime on the otherhand does not ever invoke malloc (or sbrk) to allocate memory, but calles free() 4 times by passing a nullptr, which is nonsense because it never allocated memory in the first place and free(nullptr) does not make any sense.
i use the latest arm-none-eabi-gcc (version 9) from arm-embedded. is there any newlib issues in version 9?
what else could it be?