From: Kurt Zeilenga Date: Sun, 9 Aug 1998 03:37:22 +0000 (+0000) Subject: LDAPworldP21: SLAPD Memory leak/error in filterentry.c X-Git-Tag: LDAP_3_3+prerelease~27^2~1 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=ccc2797a7768662458181dca14d9e2aacb849cef;p=openldap LDAPworldP21: SLAPD Memory leak/error in filterentry.c --- diff --git a/servers/slapd/filterentry.c b/servers/slapd/filterentry.c index 712ff22e2e..4b6807f55a 100644 --- a/servers/slapd/filterentry.c +++ b/servers/slapd/filterentry.c @@ -223,11 +223,12 @@ test_approx_filter( w2 = next_word( w2 ) ) { c2 = phonetic( w2 ); if ( strcmp( c1, c2 ) == 0 ) { + free( c2 ); break; } + free( c2 ); } free( c1 ); - free( c2 ); /* * if we stopped because we ran out of words