realloc used and possible leaks

andreas moroder claudiamoroder at st-ulrich.suedtirol.net
Tue Nov 20 12:41:03 GMT 2001


Hello,

I found the following situations where realloc instead of Realloc is used and 
where memory leaks are possible in case of low mem ( the worst case: we loose 
memory while have few )

All in 2.2.2

nsswitch/winbind_nss.c at line 825

passdb/pdb_ldap.c  at lines 299 and 323

tdb/tdb.c  at line 693

The are also the following Reallocs with possible leaks


nsswitch/winbind_group.c at line 805

param/params.c at line 419

smbwrapper/shared.c at lines 114 & 168

smbwrapper/smbw_dir.c at line 85

Bye

Andreas




More information about the samba-technical mailing list