1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-29 10:59:02 +00:00

Fix a memory leak in OS detection. When detection ran for more than one

round, fingerprint test results were being leaked in between rounds.
This commit is contained in:
david
2010-09-23 06:00:40 +00:00
parent 235dab9f24
commit ca5254f990

View File

@@ -708,8 +708,11 @@ void HostOsScanStats::initScanStats() {
}
FP = NULL;
for (i=0; i<NUM_FPTESTS; i++)
for (i=0; i<NUM_FPTESTS; i++) {
if (FPtests[i] != NULL)
delete FPtests[i];
FPtests[i] = NULL;
}
for (i=0; i<6; i++) {
TOps_AVs[i] = NULL;
TWin_AVs[i] = NULL;