C 言語関数:ldap_msgfree サンプルコード

サンプルコードを検索した結果です。


TITLE : Chapter 2 Sample Client
ldap_msgfree( result );.......
http://docs.oracle.com/cd/E19957-01/817-6707/sample.html


TITLE : ad_ldaptest.c - tests connecting to a Active Directory LDAP server
ldap_msgfree(answer);.......
http://fm4dd.com/programming/c-code/ad_ldaptest_c.htm
TITLE : an example of an LDAP asynchronous search using an LDAP API 揃 GitHub
ldap_msgfree(res);.......
http://gist.github.com/syzdek/1470233
TITLE : an example of an LDAP asynchronous search using an LDAP API 揃 GitHub
In lines 715 and 722, when freeing memory allocated by ldap library, use "ldap_msgfree(res)" instead of "ldap_memfree(res)". The last one is not deallocating all ldap allocated stuff, causing a leak (not serious unless a continuos loop is used to send async msgs).......
http://gist.github.com/syzdek/1470233
Googleで検索

https://www.google.co.jp/#q=ldap_msgfree