]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_config_ldap: Make memory allocation more consistent 13/5013/1
authorSean Bright <sean.bright@gmail.com>
Mon, 20 Feb 2017 11:45:54 +0000 (06:45 -0500)
committerSean Bright <sean.bright@gmail.com>
Mon, 20 Feb 2017 12:01:50 +0000 (07:01 -0500)
commit1ea62b5255bd62c13d4e1b5604c814894ef3235f
tree5eb8c432eb09ac3508c72b69db5707bb20bd398e
parent9efe5d1cb3f95ecf6489eb04a1c36e7e319a5542
res_config_ldap: Make memory allocation more consistent

The code in update_ldap() and update2_ldap() was using both Asterisk's
memory allocation routines as well as OpenLDAP's. I've changed it so
that everything that is passed to OpenLDAP's functions are allocated
with their routines.

Change-Id: Iafec9c1fd8ea49ccc496d6316769a6a426daa804
res/res_config_ldap.c