]> git.sur5r.net Git - openldap/commitdiff
Use LDAP_FREE instead of free
authorHoward Chu <hyc@openldap.org>
Thu, 3 Jan 2002 23:30:45 +0000 (23:30 +0000)
committerHoward Chu <hyc@openldap.org>
Thu, 3 Jan 2002 23:30:45 +0000 (23:30 +0000)
libraries/libldap/getdn.c
libraries/libldap_r/tpool.c

index c632f3ae6046364b7f46cf2357a425c2fa6a6a7b..7b6116e9c73d612eaf2f7445f729950e2616f725 100644 (file)
@@ -533,9 +533,9 @@ ldap_avafree( LDAPAVA *ava )
 
 #if 0
        /* la_attr is now contiguous with ava, not freed separately */
-       free( ava->la_attr.bv_val );
+       LDAP_FREE( ava->la_attr.bv_val );
 #endif
-       free( ava->la_value.bv_val );
+       LDAP_FREE( ava->la_value.bv_val );
 
        LDAP_FREE( ava );
 }
index fa159b3df0421b4653cf9df6e25ff2186944f8aa..421fc624a31855ba08d51eb350ffa580e1c672cc 100644 (file)
@@ -141,7 +141,7 @@ ldap_pvt_thread_pool_init (
                ldap_pvt_thread_mutex_unlock(&ldap_pvt_thread_pool_mutex);
                ldap_pvt_thread_cond_destroy(&pool->ltp_cond);
                ldap_pvt_thread_mutex_destroy(&pool->ltp_mutex);
-               free(pool);
+               LDAP_FREE(pool);
                return(-1);
        }
 #endif
@@ -233,7 +233,7 @@ ldap_pvt_thread_pool_submit (
                                                ldap_int_thread_ctx_s, ltc_next.q);
                                        pool->ltp_pending_count++;
                                        ldap_pvt_thread_mutex_unlock(&pool->ltp_mutex);
-                                       free(ctx);
+                                       LDAP_FREE(ctx);
                                        return(-1);
                                }
                        }
@@ -336,18 +336,18 @@ ldap_pvt_thread_pool_destroy ( ldap_pvt_thread_pool_t *tpool, int run_pending )
        while ((ctx = LDAP_STAILQ_FIRST(&pool->ltp_pending_list)) != NULL)
        {
                LDAP_STAILQ_REMOVE_HEAD(&pool->ltp_pending_list, ltc_next.q);
-               free(ctx);
+               LDAP_FREE(ctx);
        }
 
        while ((ctx = LDAP_SLIST_FIRST(&pool->ltp_free_list)) != NULL)
        {
                LDAP_SLIST_REMOVE_HEAD(&pool->ltp_free_list, ltc_next.l);
-               free(ctx);
+               LDAP_FREE(ctx);
        }
 
        ldap_pvt_thread_cond_destroy(&pool->ltp_cond);
        ldap_pvt_thread_mutex_destroy(&pool->ltp_mutex);
-       free(pool);
+       LDAP_FREE(pool);
        return(0);
 }