1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-14 19:59:02 +00:00

Avoid use-after-free.

This commit is contained in:
dmiller
2015-06-23 03:59:39 +00:00
parent dc6fcb4be1
commit eda09854ac

View File

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