(closes issue #16257)
Reported by: nito
Patches:
issue16257_20100111.diff uploaded by seanbright (license 71)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@240271
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
ldap_entry = ldap_first_entry(ldapConn, ldap_result_msg);
for (tot_count = 0; ldap_entry; tot_count++) {
- tot_count += semicolon_count_var(realtime_ldap_entry_to_var(table_config, ldap_entry));
+ struct ast_variable *tmp = realtime_ldap_entry_to_var(table_config, ldap_entry);
+ tot_count += semicolon_count_var(tmp);
ldap_entry = ldap_next_entry(ldapConn, ldap_entry);
+ ast_variables_destroy(tmp);
}
if (entries_count_ptr) {