Bug 362341

Summary: Small one-time memory leak of configdir at startup
Product: [Retired] 389 Reporter: Nathan Kinder <nkinder>
Component: Directory ServerAssignee: Nathan Kinder <nkinder>
Status: CLOSED CURRENTRELEASE QA Contact: Viktor Ashirov <vashirov>
Severity: low Docs Contact:
Priority: high    
Version: 1.1.0CC: amsharma, jgalipea, rmeggins
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-12-07 17:01:34 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 495079, 639035    
Attachments:
Description Flags
CVS Diffs none

Description Nathan Kinder 2007-11-01 18:50:37 UTC
I noticed a small one-time memory leak at startup when running the server in
valgrind.  Here's the leak report:

==7983== 26 bytes in 1 blocks are definitely lost in loss record 8 of 39
==7983==    at 0x4004405: malloc (vg_replace_malloc.c:149)
==7983==    by 0xA5E3AF: strdup (in /lib/tls/libc-2.3.4.so)
==7983==    by 0x4031974: slapi_ch_strdup (ch_malloc.c:276)
==7983==    by 0x4050B6F: config_get_configdir (libglobs.c:4484)
==7983==    by 0x8051F5D: ??? (auth.c:281)
==7983==    by 0x8060BD1: ??? (main.c:924)
==7983==    by 0xA09DE2: (below main) (in /lib/tls/libc-2.3.4.so)

Comment 1 Nathan Kinder 2007-11-01 18:51:56 UTC
Created attachment 245961 [details]
CVS Diffs

Comment 4 Rich Megginson 2009-04-09 17:51:05 UTC
We should reduce the valgrind noise

Comment 6 Nathan Kinder 2010-12-10 21:23:22 UTC
This has already been fixed (presumably from the Coverity work that was done).  Marking this as MODIFIED.