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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user