mirror of
https://github.com/nmap/nmap.git
synced 2026-06-09 17:22:26 +00:00
Free TOps_AVs and TWin_AVs between OS rounds.
This was leaking a small amount of memory when OS detection was repeated on a host.
This commit is contained in:
parent
1697e714fe
commit
5574f50bf4
1 changed files with 4 additions and 0 deletions
|
|
@ -1170,6 +1170,10 @@ void HostOsScanStats::initScanStats() {
|
|||
FPtests[i] = NULL;
|
||||
}
|
||||
for (i=0; i<6; i++) {
|
||||
if (TOps_AVs[i])
|
||||
free(TOps_AVs[i]);
|
||||
if (TWin_AVs[i])
|
||||
free(TWin_AVs[i]);
|
||||
TOps_AVs[i] = NULL;
|
||||
TWin_AVs[i] = NULL;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue