openstreetmap / mod_tile

Renders map tiles with mapnik and serves them using apache
http://wiki.openstreetmap.org/wiki/Mod_tile
GNU General Public License v2.0
288 stars 190 forks source link

Fix memory leak during configuration parsing #455

Closed hummeltech closed 3 months ago

hummeltech commented 3 months ago

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_r

Also improved messaging.