Closed hummeltech closed 3 months ago
The memory allocated by strndup needs to be freed.
strndup
The code has also been changed to not lose the allocation pointer and according to the semantics of strtok_r explained here: https://man.freebsd.org/cgi/man.cgi?query=strtok_r
strtok_r
Also improved messaging.
The memory allocated by
strndup
needs to be freed.The code has also been changed to not lose the allocation pointer and according to the semantics of
strtok_r
explained here: https://man.freebsd.org/cgi/man.cgi?query=strtok_rAlso improved messaging.