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

(ITS#5691) Re: malloc without check

Actually, I see plenty of places where it occurs.  I vaguely recall that 
malloc used to be #defined as ch_malloc within slapd, although I believe 
it is no longer.  In any case, I'm in favor of avoiding those 
redefinitions, for the sake of clarity.  The correct solution should be 
to replace them with ch_malloc() (same for other memory-related 
functions, like calloc(), realloc(), strdup() and free(), although the 
latter is not strictly needed).


Ing. Pierangelo Masarati
OpenLDAP Core Team

SysNet s.r.l.
via Dossi, 8 - 27100 Pavia - ITALIA
Office:  +39 02 23998309
Mobile:  +39 333 4963172
Fax:     +39 0382 476497
Email:   ando@sys-net.it