Avoid freeing freed data.
Fix code logic.
Remove client_maps_url configuration option.