[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: memory leak in slap_sasl2dn (ITS#3315)



hyc@OpenLDAP.org wrote:

>Full_Name: Howard Chu
>Version: 2.2.15
>OS: 
>URL: 
>Submission from: (NULL) (24.126.120.178)
>Submitted by: hyc
>
>
>The DN returned from slap_parseURI is apparently being leaked. Still
>investigating.
>  
>
There are two potential leaks (callers of slap_parseURI); the first was 
fixed in rev 1.118 and the second was fixed in rev 1.124 of saslauthz.c 
in CVS HEAD. These fixes are part of a larger cleanup, so we can't just 
pull in all of the changes from those revisions.
(The specific fix was to replace op.o_req_dn as returned from 
slap_parseURI with op.o_req_ndn, the normalized version, freeing the 
original op.o_req_dn in the process.)

-- 
  -- Howard Chu
  Chief Architect, Symas Corp.       Director, Highland Sun
  http://www.symas.com               http://highlandsun.com/hyc
  Symas: Premier OpenSource Development and Support