mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-30 12:04:07 +00:00
Don't free(sock) before it's even allocated.
Submitted by: Joerg Sonnenberger <joerg@britannica.bec.de> MFC after: 1 week
This commit is contained in:
parent
57341fbcf3
commit
fd0cba238e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=147227
@ -279,7 +279,6 @@ gather_inet(int proto)
|
||||
} else {
|
||||
if (opt_v)
|
||||
warnx("invalid vflag 0x%x", inp->inp_vflag);
|
||||
free(sock);
|
||||
continue;
|
||||
}
|
||||
if ((sock = calloc(1, sizeof *sock)) == NULL)
|
||||
|
Loading…
Reference in New Issue
Block a user