Talloced strings get freed with talloc...?
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Mon, 2 Sep 2013 23:52:58 +0000 (00:52 +0100)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Mon, 2 Sep 2013 23:53:08 +0000 (00:53 +0100)
src/modules/rlm_ldap/groups.c

index 8be9425..a16feae 100644 (file)
@@ -628,7 +628,7 @@ rlm_rcode_t rlm_ldap_check_userobj_dynamic(ldap_instance_t const *inst, REQUEST
                        }
 
                        eq = strcmp(vals[i], name_dn);
-                       ldap_memfree(name_dn);
+                       talloc_free(name_dn);
                        if (eq == 0){
                                RDEBUG("User found. Comparison between membership: name, check: name "
                                       "(resolved from DN)");
@@ -654,7 +654,7 @@ rlm_rcode_t rlm_ldap_check_userobj_dynamic(ldap_instance_t const *inst, REQUEST
                        }
 
                        eq = strcmp(vals[i], value_dn);
-                       ldap_memfree(value_dn);
+                       talloc_free(value_dn);
                        if (eq == 0){
                                RDEBUG("User found. Comparison between membership: name (resolved from DN), "
                                       "check: name");