1
0
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:
david
2011-09-09 08:24:47 +00:00
parent 1697e714fe
commit 5574f50bf4

View File

@@ -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;
}