]> git.sur5r.net Git - openldap/commitdiff
Plug leaks in controls_destroy()
authorHoward Chu <hyc@openldap.org>
Fri, 14 Mar 2003 09:42:18 +0000 (09:42 +0000)
committerHoward Chu <hyc@openldap.org>
Fri, 14 Mar 2003 09:42:18 +0000 (09:42 +0000)
servers/slapd/controls.c

index 0b2ff439649d976f3bd2f001450ff8035049e07b..43c7f59f6a88314062e65dcc40b06a923d7b0aa6 100644 (file)
@@ -226,7 +226,9 @@ controls_destroy( void )
                if ( sc->sc_extendedops != NULL ) {
                        ldap_charray_free( sc->sc_extendedops );
                }
+               ch_free( sc );
        }
+       ldap_charray_free( slap_known_controls );
 }
 
 /*