diff --git a/nmap.cc b/nmap.cc index a4dfb0166..120394f0d 100644 --- a/nmap.cc +++ b/nmap.cc @@ -1949,6 +1949,9 @@ int nmap_main(int argc, char *argv[]) { num_host_exp_groups = 0; free(host_exp_group); + if (inputfd != NULL) + fclose(inputfd); + printdatafilepaths(); printfinaloutput();