From: hno <> Date: Sun, 11 Aug 2002 07:53:57 +0000 (+0000) Subject: The new LDAP API uses it's own versions of free(), not the standard C X-Git-Tag: SQUID_3_0_PRE1~855 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a9ce6538fc5b5087fa98910e5dd0232ee4e922cc;p=thirdparty%2Fsquid.git The new LDAP API uses it's own versions of free(), not the standard C functions like the old LDAP API.. --- 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