realloc used

Alexander Bokovoy a.bokovoy at sam-solutions.net
Wed Oct 3 04:09:02 GMT 2001


On Tue, Oct 02, 2001 at 09:56:29PM +0200, andreas moroder wrote:
> Hello,
> 
> in the HEAD cvs from 30.9   realloc was used in a few places instead of 
> Realloc.
> 
> passdb/pdb_ldap.c    at line 301.   Attention there is also the leak problem 
> x=reallco(x)  where x is never freed if the realloc fails:
> 
> 
> intl/localealias.c lines 340 and 384
> 
> nsswitch/winbind_nss.c    line 825. Here there is the same x=realloc(x) 
> problem as above.
Seems that it can be source for the problems of memory leaks in winbindd
I'm experiencing in past few weeks.

-- 
/ Alexander Bokovoy
$ cat /proc/identity >~/.signature
  `Senior software developer and analyst for SaM-Solutions Ltd.`
---
Never let your schooling interfere with your education.




More information about the samba-technical mailing list