]> git.sur5r.net Git - openldap/commitdiff
subschemaSubentry attributes could be leaked under some conditions,
authorKurt Zeilenga <kurt@openldap.org>
Wed, 3 Oct 2001 18:19:07 +0000 (18:19 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Wed, 3 Oct 2001 18:19:07 +0000 (18:19 +0000)
plug them.

servers/slapd/result.c

index 5d1f4c205c3a9f4b6e42af53283ced8e707d3ce2..f869f86c91d2f0eddc4f8817f1c31ba1627d84d3 100644 (file)
@@ -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;
                }
        }