diff --git a/sys/kern/uipc_syscalls.c b/sys/kern/uipc_syscalls.c index 197148cefb75..e282665f75e5 100644 --- a/sys/kern/uipc_syscalls.c +++ b/sys/kern/uipc_syscalls.c @@ -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); }