From 7128ba0bb8c29305aeae6e6049ec23ad38107d23 Mon Sep 17 00:00:00 2001 From: Tilghman Lesher Date: Fri, 11 Apr 2008 23:12:16 +0000 Subject: [PATCH] Use the correct function for free'ing objects, and maybe we won't crash. (closes issue #12163) Reported by: gservat Patches: 20080411__bug12163.diff.txt uploaded by Corydon76 (license 14) Tested by: gservat git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@114085 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- res/res_config_ldap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/res/res_config_ldap.c b/res/res_config_ldap.c index 3344b3debd..a88e480a4c 100644 --- a/res/res_config_ldap.c +++ b/res/res_config_ldap.c @@ -326,7 +326,7 @@ static struct ast_variable *realtime_ldap_entry_to_var(struct ldap_table_config } v++; } - ber_bvecfree(values); + ldap_value_free_len(values); } ldap_attribute_name = ldap_next_attribute(ldapConn, ldap_entry, ber); } @@ -492,7 +492,7 @@ static struct ast_variable **realtime_ldap_result_to_vars(struct ldap_table_conf } v++; } /*!< while(*v) */ - ber_bvecfree(values); + ldap_value_free_len(values); }/*!< if (values) */ ldap_attribute_name = ldap_next_attribute(ldapConn, ldap_entry, ber); } /*!< while (ldap_attribute_name) */