diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-04-11 23:13:07 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-04-11 23:13:07 +0000 |
commit | 9f4c3810378cb5cc41e910c25fffe1cbad87eff0 (patch) | |
tree | 6708dc9b38e856b04c9877f8e2b1bf676ceb25ae /res | |
parent | 0301ede9038761da37b6e18f9a2960a59875a04a (diff) |
Merged revisions 114085 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
........
r114085 | tilghman | 2008-04-11 18:12:16 -0500 (Fri, 11 Apr 2008) | 7 lines
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: http://svn.digium.com/svn/asterisk/branches/1.6.0@114086 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'res')
-rw-r--r-- | res/res_config_ldap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/res/res_config_ldap.c b/res/res_config_ldap.c index 3344b3deb..a88e480a4 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) */ |