Index: sys/nfs/krpc_subr.c =================================================================== --- sys/nfs/krpc_subr.c +++ sys/nfs/krpc_subr.c @@ -167,8 +167,10 @@ sin->sin_port = htons(PMAPPORT); error = krpc_call(sin, PMAPPROG, PMAPVERS, PMAPPROC_GETPORT, &m, NULL, td); - if (error) + if (error) { + m_freem(m); return error; + } if (m->m_len < sizeof(*rdata)) { m = m_pullup(m, sizeof(*rdata));