From 66ec6eab6f4b02afd7e9c7b307ef6954396e6bcb Mon Sep 17 00:00:00 2001 From: david Date: Mon, 24 Aug 2009 19:19:11 +0000 Subject: [PATCH] Fix a memory leak in parse_single_fingerprint. This function isn't used in Nmap, but only in the separate fingerprint utilities. --- osscan.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/osscan.cc b/osscan.cc index a62eb2da7..77aeacd37 100644 --- a/osscan.cc +++ b/osscan.cc @@ -963,6 +963,10 @@ FingerPrint *parse_single_fingerprint(char *fprint_orig) { thisline = nextline; /* Time to handle the next line, if there is one */ lineno++; } while (thisline && *thisline); + + /* Free the temporary fingerprint copy. */ + free(fprint); + return FP; }