[Tile-serving] [openstreetmap/mod_tile] Fix memory leak during configuration parsing (PR #455)
Hummeltech
notifications at github.com
Sat Jun 29 20:34:23 UTC 2024
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.
You can view, comment on, or merge this pull request online at:
https://github.com/openstreetmap/mod_tile/pull/455
-- Commit Summary --
* Fix memory leak during configuration parsing
* Clear things up
-- File Changes --
M src/renderd.c (8)
M src/renderd_config.c (7)
-- Patch Links --
https://github.com/openstreetmap/mod_tile/pull/455.patch
https://github.com/openstreetmap/mod_tile/pull/455.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/mod_tile/pull/455
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/mod_tile/pull/455 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20240629/c430466c/attachment.htm>
More information about the Tile-serving
mailing list