mirror of
https://github.com/nmap/nmap.git
synced 2026-01-02 04:49:02 +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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user