From ccc2797a7768662458181dca14d9e2aacb849cef Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Sun, 9 Aug 1998 03:37:22 +0000 Subject: [PATCH] LDAPworldP21: SLAPD Memory leak/error in filterentry.c --- servers/slapd/filterentry.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.39.5