mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 14:49:29 +00:00
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:
parent
6bd9760f3b
commit
66ec6eab6f
1 changed files with 4 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue