[asterisk-commits] oej: branch oej/bp-res_conf_ldap-1.4 r240325 - /team/oej/bp-res_conf_ldap-1.4...
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Fri Jan 15 02:36:25 CST 2010
Author: oej
Date: Fri Jan 15 02:36:23 2010
New Revision: 240325
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=240325
Log:
Author: seanbright
Date: Thu Jan 14 17:13:02 2010
New Revision: 240271
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=240271
Log:
Plug a memory leak in res_config_ldap.
(closes issue #16257)
Reported by: nito
Patches:
issue16257_20100111.diff uploaded by seanbright (license 71)
Modified:
team/oej/bp-res_conf_ldap-1.4/res/res_config_ldap.c
Modified: team/oej/bp-res_conf_ldap-1.4/res/res_config_ldap.c
URL: http://svnview.digium.com/svn/asterisk/team/oej/bp-res_conf_ldap-1.4/res/res_config_ldap.c?view=diff&rev=240325&r1=240324&r2=240325
==============================================================================
--- team/oej/bp-res_conf_ldap-1.4/res/res_config_ldap.c (original)
+++ team/oej/bp-res_conf_ldap-1.4/res/res_config_ldap.c Fri Jan 15 02:36:23 2010
@@ -391,8 +391,10 @@
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)
More information about the asterisk-commits
mailing list