1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-15 20:29:03 +00:00

Merge from /nmap-exp/david/nmap-mem. This reduces the memory usage of OS

scan by about 95%. (66832396 bytes to 2815061 bytes according to
Massif.)
This commit is contained in:
david
2009-11-23 21:22:07 +00:00
parent ddc1b9b2d1
commit a06b900f00
7 changed files with 540 additions and 616 deletions

View File

@@ -1975,8 +1975,8 @@ void nmap_free_mem() {
cp_free();
free_dns_servers();
free_etchosts();
if(o.reference_FPs){
free_fingerprint_file(o.reference_FPs);
if (o.reference_FPs) {
delete o.reference_FPs;
o.reference_FPs = NULL;
}
AllProbes::service_scan_free();