1
0
mirror of https://github.com/nmap/nmap.git synced 2026-01-02 04:49:02 +00:00

Fix a segfault with --release-memory without --traceroute

This commit is contained in:
dmiller
2015-09-09 02:50:50 +00:00
parent bc7d670911
commit 0021991042

View File

@@ -1014,6 +1014,7 @@ void traceroute_hop_cache_clear() {
for (map_iter = hop_cache.begin(); map_iter != hop_cache.end(); map_iter++)
delete map_iter->second;
hop_cache.clear();
if (!timedout_hops) return;
for (list_iter = timedout_hops->begin(); list_iter != timedout_hops->end(); list_iter++)
delete *list_iter;
timedout_hops->clear();