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

Memory managment ...



Hello,

	I wish to know how correctly manage memory with LDAP. For example, how
	do a malloc for an LDAPMod struct or an berval struct. I think all
these
	functions are like macro and go to the standard malloc. But for do the
	thing cleanly, what i must use ?

	LDAPMod *pMod;

	pMod = (LDAPMod *) malloc(sizeof(LDAPMod));
	or
	pMod = (LDAPMod *) ldap_memalloc(sizeof(LDAPMod));
	or	
	pMod = (LDAPMod *) ber_memalloc(sizeof(LDAPMod));

	Thanks for your Help ...

							Greets, Yannick.