in ldap_connecting() function，when ldap_parse_result return,if err != LDAP_PROTOCOL_ERROR, the memory which info point to isn't been freed.
Thanks for the report, this problem is now fixed in the git repository.
To try it out, you either checkout/update your git clone: http://curl.haxx.se/source.html
or you try tomorrow's daily snapshot: http://curl.haxx.se/snapshots/
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.