1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-06 04:31:29 +00:00

Fix crash: manage lifetime of now-dynamic test results

This commit is contained in:
dmiller
2022-09-13 20:05:34 +00:00
parent 1d8bf1deff
commit 8b3465231e
4 changed files with 36 additions and 17 deletions

View File

@@ -94,6 +94,7 @@ FingerPrintResultsIPv4::~FingerPrintResultsIPv4() {
/* Free OS fingerprints of OS scanning was done */
for(i=0; i < numFPs; i++) {
FPs[i]->erase();
delete(FPs[i]);
FPs[i] = NULL;
}