[asterisk-commits] tilghman: trunk r114085 - /trunk/res/res_config_ldap.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Apr 11 18:12:17 CDT 2008


Author: tilghman
Date: Fri Apr 11 18:12:16 2008
New Revision: 114085

URL: http://svn.digium.com/view/asterisk?view=rev&rev=114085
Log:
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

Modified:
    trunk/res/res_config_ldap.c

Modified: trunk/res/res_config_ldap.c
URL: http://svn.digium.com/view/asterisk/trunk/res/res_config_ldap.c?view=diff&rev=114085&r1=114084&r2=114085
==============================================================================
--- trunk/res/res_config_ldap.c (original)
+++ trunk/res/res_config_ldap.c Fri Apr 11 18:12:16 2008
@@ -326,7 +326,7 @@
 				}
 				v++;
 			}
-			ber_bvecfree(values);
+			ldap_value_free_len(values);
 		}
 		ldap_attribute_name = ldap_next_attribute(ldapConn, ldap_entry, ber);
 	}
@@ -492,7 +492,7 @@
 						}
 						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) */




More information about the asterisk-commits mailing list