]> git.sur5r.net Git - openldap/commitdiff
Plug memory leak of normalized value in value_find()
authorKurt Zeilenga <kurt@openldap.org>
Thu, 20 Jul 2000 23:56:12 +0000 (23:56 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Thu, 20 Jul 2000 23:56:12 +0000 (23:56 +0000)
servers/slapd/value.c

index 2440a6a6e17bad96e3cbc6ea9361bcb5dd6d76e4..e4b9ee0ed6c4ea05ae9e61947c6f629cf385febd 100644 (file)
@@ -188,9 +188,11 @@ int value_find(
                        vals[i], nval == NULL ? val : nval, &text );
 
                if( rc == LDAP_SUCCESS && match == 0 ) {
+                       ber_bvfree( nval );
                        return LDAP_SUCCESS;
                }
        }
 
+       ber_bvfree( nval );
        return LDAP_NO_SUCH_ATTRIBUTE;
 }