1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-06 04:31:29 +00:00

Fix #2496: new targets couldn't be added because singleton object was not created

This commit is contained in:
dmiller
2022-06-27 23:01:44 +00:00
parent 2697996f68
commit c58b7b2526
6 changed files with 21 additions and 53 deletions

View File

@@ -1786,6 +1786,7 @@ void apply_delayed_options() {
// Free some global memory allocations.
// This is used for detecting memory leaks.
void nmap_free_mem() {
NewTargets::free_new_targets();
PortList::freePortMap();
cp_free();
free_services();
@@ -2313,7 +2314,6 @@ int nmap_main(int argc, char *argv[]) {
#endif
addrset_free(exclude_group);
NewTargets::free_new_targets();
if (o.inputfd != NULL)
fclose(o.inputfd);