From: Michael <mi...@st...> - 2001-06-25 10:37:42
|
HI! Find below one more important note about hasty patches for linking python-ldap against OpenLDAP 2 libs. Ciao, Michael. -------- Original Message -------- Subject: Re: Thanx for helping me... Date: Mon, 25 Jun 2001 12:19:04 +0200 From: Stig Venaas <Sti...@un...> To: Michael Str=F6der <mi...@st...> [..] One more thing. I've realized after looking more at the new LDAP API (the one in OpenLDAP 2.x.x) that code using the old API will compile and work just fine with the new API except for one important thing. There will be memory leaks! So people should be warned a bit against just using old applications with OpenLDAP 2.x.x libs perhaps. The reason is changes in the memory allocation. When using ldap_first_attribute and next attribute, the attribute string must be freed, and one must also free the ber structure used by those. Same holds for get_dn or whatever it's called. I've just been fixing this in PHP. Stig |