Revert r306337. dhw@ reproted a panic which seems related to this and bde@ has

raised some issues.
This commit is contained in:
Hiren Panchasara 2016-09-26 15:45:30 +00:00
parent ed8f18ded4
commit 7c9a4d09d6

View File

@ -685,7 +685,7 @@ sys_socketpair(struct thread *td, struct socketpair_args *uap)
static int static int
sendit(struct thread *td, int s, struct msghdr *mp, int flags) sendit(struct thread *td, int s, struct msghdr *mp, int flags)
{ {
struct mbuf *control = NULL; struct mbuf *control;
struct sockaddr *to; struct sockaddr *to;
int error; int error;
@ -737,8 +737,6 @@ sendit(struct thread *td, int s, struct msghdr *mp, int flags)
bad: bad:
free(to, M_SONAME); free(to, M_SONAME);
if (control)
m_freem(control);
return (error); return (error);
} }