Re: svn commit: r300620 - head/lib/libc/rpc

2016-05-24 Thread Ngie Cooper (yaneurabeya)
> On May 24, 2016, at 11:49, Conrad Meyer wrote: > > On Tue, May 24, 2016 at 11:44 AM, Garrett Cooper wrote: >> Author: ngie >> Date: Tue May 24 18:44:50 2016 >> New Revision: 300620 >> URL: https://svnweb.freebsd.org/changeset/base/300620 >> >> Log: >>

Re: svn commit: r300620 - head/lib/libc/rpc

2016-05-24 Thread Conrad Meyer
On Tue, May 24, 2016 at 11:44 AM, Garrett Cooper wrote: > Author: ngie > Date: Tue May 24 18:44:50 2016 > New Revision: 300620 > URL: https://svnweb.freebsd.org/changeset/base/300620 > > Log: > Use reallocf instead of malloc to fix leak with outbuf_pmap > > ... > > Add a

svn commit: r300620 - head/lib/libc/rpc

2016-05-24 Thread Garrett Cooper
Author: ngie Date: Tue May 24 18:44:50 2016 New Revision: 300620 URL: https://svnweb.freebsd.org/changeset/base/300620 Log: Use reallocf instead of malloc to fix leak with outbuf_pmap The previous code overwrote outbuf_pmap's memory with malloc once per loop iteration, which leaked its