Fix a memory leak in parse_single_fingerprint. This function isn't used

in Nmap, but only in the separate fingerprint utilities.
This commit is contained in:
david 2009-08-24 19:19:11 +00:00
parent 6bd9760f3b
commit 66ec6eab6f

View file

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