mirror of
https://github.com/openstreetmap/mod_tile.git
synced 2025-08-03 07:49:53 +00:00
[render_list] fix invalid free() in case of default mapname or tilepath
This commit is contained in:
@ -304,8 +304,12 @@ int main(int argc, char **argv)
|
||||
finish_workers();
|
||||
|
||||
free(spath);
|
||||
free(mapname);
|
||||
free(tile_dir);
|
||||
if (mapname != XMLCONFIG_DEFAULT) {
|
||||
free(mapname);
|
||||
}
|
||||
if (tile_dir != HASH_PATH) {
|
||||
free(tile_dir);
|
||||
}
|
||||
|
||||
|
||||
gettimeofday(&end, NULL);
|
||||
|
Reference in New Issue
Block a user