[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: ldap_msgfree() when ldap_search_s() failed
From: "Kurt D. Zeilenga" <Kurt@OpenLDAP.org>
Subject: Re: ldap_msgfree() when ldap_search_s() failed
Date: Wed, 01 Jun 2005 13:18:04 -0700
> First, ldap_search_s() is deprecated in favor of ldap_search_ext_s().
I didn't try ldap_search_ext_s(), but it seems to have the same
problem.
> But to answer your basic question, if the call allocates an
> LDAPMessage, then the caller must free it by calling ldap_msgfree().
I wonder why ldap_search_s() allocates an LDAPMessage even if it
returns LDAP_NO_SUCH_OBJECT.
thanks.
____________________________________
Kazuaki Anami (kazuaki@soum.co.jp)