When the regular NFS server replied to a UDP client out of the replay

cache, it did not free the request argument mbuf list, resulting in a leak.
This patch fixes that leak.

Tested by:	danny AT cs.huji.ac.il
PR:		kern/144330
Submitted by:	to.my.trociny AT gmail.com (earlier version)
Reviewed by:	dfr
MFC after:	2 weeks
This commit is contained in:
Rick Macklem 2010-03-23 23:03:30 +00:00
parent 26bf9c3b54
commit 578e600c8d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=205562

View File

@ -819,9 +819,11 @@ svc_getreq(SVCXPRT *xprt, struct svc_req **rqstp_ret)
free(r->rq_addr, M_SONAME);
r->rq_addr = NULL;
}
m_freem(args);
goto call_done;
default:
m_freem(args);
goto call_done;
}
}