Remove some unused function prototypes

This commit is contained in:
dmiller 2017-04-19 02:17:20 +00:00
parent 214d527632
commit 71f86bf2ec
2 changed files with 11 additions and 18 deletions

22
nmap.cc
View file

@ -1761,6 +1761,17 @@ void apply_delayed_options() {
}
}
// Free some global memory allocations.
// This is used for detecting memory leaks.
void nmap_free_mem() {
PortList::freePortMap();
cp_free();
free_services();
AllProbes::service_scan_free();
traceroute_hop_cache_clear();
nsock_set_default_engine(NULL);
}
int nmap_main(int argc, char *argv[]) {
int i;
std::vector<Target *> Targets;
@ -2288,17 +2299,6 @@ int nmap_main(int argc, char *argv[]) {
return 0;
}
// Free some global memory allocations.
// This is used for detecting memory leaks.
void nmap_free_mem() {
PortList::freePortMap();
cp_free();
free_services();
AllProbes::service_scan_free();
traceroute_hop_cache_clear();
nsock_set_default_engine(NULL);
}
/* Reads in a (normal or machine format) Nmap log file and gathers enough
state to allow Nmap to continue where it left off. The important things
it must gather are: