mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-18 11:05:48 +08:00
LDAPworldP21: SLAPD Memory leak/error in filterentry.c
This commit is contained in:
parent
29062d06e4
commit
ccc2797a77
@ -223,11 +223,12 @@ test_approx_filter(
|
|||||||
w2 = next_word( w2 ) ) {
|
w2 = next_word( w2 ) ) {
|
||||||
c2 = phonetic( w2 );
|
c2 = phonetic( w2 );
|
||||||
if ( strcmp( c1, c2 ) == 0 ) {
|
if ( strcmp( c1, c2 ) == 0 ) {
|
||||||
|
free( c2 );
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
free( c2 );
|
||||||
}
|
}
|
||||||
free( c1 );
|
free( c1 );
|
||||||
free( c2 );
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* if we stopped because we ran out of words
|
* if we stopped because we ran out of words
|
||||||
|
Loading…
Reference in New Issue
Block a user