Fwd: Memory leak in authunix_create_default()...

From: Andrew Boyer <aboyer_at_averesystems.com>
Date: Mon, 23 Apr 2012 13:31:03 -0400
Begin forwarded message:

> From: Greg Bednarek <gbednarek_at_averesystems.com>
> Date: April 16, 2012 10:54:33 AM EDT
> To: freebsd-current_at_freebsd.org
> Cc: Andrew Boyer <aboyer_at_averesystems.com>
> Subject: Memory leak in authunix_create_default()...
> 
> 
> Please see the attached patch for a proposed fix for a memory leak in authunix_create_default().
> 
> The leak appears to have been introduced 6/19/2009 in Revision 194494 of lib/libc/rpc/auth_unix.c
> 
> As you can see form the patch, the fix is very simple. The issue was discovered when tracking down some rather drastic increases in application memory footprint during certain types of workloads, and was eventually traced it to this (apparently) not very heavily used path in libc.
> 
> I would appreciate hearing any comments/concerns with the proposed fix.
> 
> 
> 
> Regards,
> 
> Greg Bednarek
> 
> 
> ---
> Greg Bednarek
> phone: 412-635-7170 x257
> fax:        412-635-7171
> email: gbednarek_at_averesystems.com
> 
> 
> 
> 
> 

This got caught up in moderation and never reached the list.

-Andrew

--------------------------------------------------
Andrew Boyer	aboyer_at_averesystems.com
Received on Mon Apr 23 2012 - 15:31:12 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:26 UTC