From: Kurt Zeilenga Date: Wed, 3 Oct 2001 18:19:07 +0000 (+0000) Subject: subschemaSubentry attributes could be leaked under some conditions, X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~1010 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=f704c35caf91ee29f6d22e9292cf07f094358aba;p=openldap subschemaSubentry attributes could be leaked under some conditions, plug them. --- diff --git a/servers/slapd/result.c b/servers/slapd/result.c index 5d1f4c205c..f869f86c91 100644 --- a/servers/slapd/result.c +++ b/servers/slapd/result.c @@ -965,6 +965,7 @@ send_search_entry( ber_free( ber, 1 ); send_ldap_result( conn, op, LDAP_OTHER, NULL, "encoding description error", NULL, NULL ); + attrs_free( aa ); goto error_return; } @@ -1000,6 +1001,7 @@ send_search_entry( ber_free( ber, 1 ); send_ldap_result( conn, op, LDAP_OTHER, NULL, "encoding values error", NULL, NULL ); + attrs_free( aa ); goto error_return; } } @@ -1017,6 +1019,7 @@ send_search_entry( ber_free( ber, 1 ); send_ldap_result( conn, op, LDAP_OTHER, NULL, "encode end error", NULL, NULL ); + attrs_free( aa ); goto error_return; } }