diff --git a/sys/kern/uipc_usrreq.c b/sys/kern/uipc_usrreq.c index 862d5c3de63b..d21641fbbe42 100644 --- a/sys/kern/uipc_usrreq.c +++ b/sys/kern/uipc_usrreq.c @@ -603,8 +603,8 @@ restart: /* SHOULD BE ABLE TO ADOPT EXISTING AND wakeup() ALA FIFO's */ error = namei(&nd); if (error) { - return (error); free(buf, M_TEMP); + return (error); } vp = nd.ni_vp; if (vp != NULL || vn_start_write(nd.ni_dvp, &mp, V_NOWAIT) != 0) {