mirror of
https://github.com/nmap/nmap.git
synced 2026-08-03 22:29:06 +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:
parent
235dab9f24
commit
ca5254f990
1 changed files with 4 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue