From a9ce6538fc5b5087fa98910e5dd0232ee4e922cc Mon Sep 17 00:00:00 2001 From: hno <> Date: Sun, 11 Aug 2002 07:53:57 +0000 Subject: [PATCH] The new LDAP API uses it's own versions of free(), not the standard C functions like the old LDAP API.. --- helpers/basic_auth/LDAP/squid_ldap_auth.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/helpers/basic_auth/LDAP/squid_ldap_auth.c b/helpers/basic_auth/LDAP/squid_ldap_auth.c index d48ad7c186..2801ff4fdb 100644 --- a/helpers/basic_auth/LDAP/squid_ldap_auth.c +++ b/helpers/basic_auth/LDAP/squid_ldap_auth.c @@ -96,7 +96,11 @@ squid_ldap_set_referrals(LDAP * ld, int referrals) int *value = referrals ? LDAP_OPT_ON : LDAP_OPT_OFF; ldap_set_option(ld, LDAP_OPT_REFERRALS, value); } - +static void +squid_ldap_memfree(char *p) +{ + ldap_memfree(p); +} #else static int squid_ldap_errno(LDAP * ld) @@ -116,6 +120,11 @@ squid_ldap_set_referrals(LDAP * ld, int referrals) else ld->ld_options &= ~LDAP_OPT_REFERRALS; } +static void +squid_ldap_memfree(char *p) +{ + free(p); +} #endif int -- 2.47.2