mirror of
https://github.com/nmap/nmap.git
synced 2026-08-03 22:29:06 +00:00
Avoid use-after-free.
This commit is contained in:
parent
dc6fcb4be1
commit
eda09854ac
1 changed files with 1 additions and 1 deletions
|
|
@ -172,8 +172,8 @@ int netrun(struct fdinfo *fdn, char *cmdexec)
|
|||
|
||||
pid = start_subprocess(cmdexec, info);
|
||||
if (pid == -1) {
|
||||
free(info);
|
||||
close(info->fdn.fd);
|
||||
free(info);
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue