Revert r306337. dhw@ reproted a panic which seems related to this and bde@ has
raised some issues.
This commit is contained in:
parent
ed8f18ded4
commit
7c9a4d09d6
@ -685,7 +685,7 @@ sys_socketpair(struct thread *td, struct socketpair_args *uap)
|
||||
static int
|
||||
sendit(struct thread *td, int s, struct msghdr *mp, int flags)
|
||||
{
|
||||
struct mbuf *control = NULL;
|
||||
struct mbuf *control;
|
||||
struct sockaddr *to;
|
||||
int error;
|
||||
|
||||
@ -737,8 +737,6 @@ sendit(struct thread *td, int s, struct msghdr *mp, int flags)
|
||||
|
||||
bad:
|
||||
free(to, M_SONAME);
|
||||
if (control)
|
||||
m_freem(control);
|
||||
return (error);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user