From adcbd54e1917c53d3f625f04a50d15a589f58bcd Mon Sep 17 00:00:00 2001 From: david Date: Mon, 28 Sep 2009 23:15:55 +0000 Subject: [PATCH] Close the -iL input file after reading. --- nmap.cc | 3 +++ 1 file changed, 3 insertions(+) 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();