mirror of
https://github.com/nmap/nmap.git
synced 2026-09-29 03:24:27 +00:00
Remove some unused function prototypes
This commit is contained in:
parent
214d527632
commit
71f86bf2ec
2 changed files with 11 additions and 18 deletions
22
nmap.cc
22
nmap.cc
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue