]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_config_ldap: Make memory allocation more consistent 06/5006/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 11:45:54 +0000 (06:45 -0500)
commit011b7be62a0c64cee904a996d23ad65c13022e39
treee09170045bd5bcfa78f78652913f3448e2acbfad
parentb2836dde7ef9f1c14ccd721f2d94ec8f3683433b
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