]> git.sur5r.net Git - openldap/commitdiff
LDAPworldP21: SLAPD Memory leak/error in filterentry.c
authorKurt Zeilenga <kurt@openldap.org>
Sun, 9 Aug 1998 03:37:22 +0000 (03:37 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Sun, 9 Aug 1998 03:37:22 +0000 (03:37 +0000)
servers/slapd/filterentry.c

index 712ff22e2e1751ede97126547147dc6d3c796776..4b6807f55a3a25346adc61940f7c11873e498536 100644 (file)
@@ -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