]> git.sur5r.net Git - openldap/commitdiff
Add comment about leaked on exit values.... we likely should
authorKurt Zeilenga <kurt@openldap.org>
Wed, 2 Feb 2000 21:26:36 +0000 (21:26 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Wed, 2 Feb 2000 21:26:36 +0000 (21:26 +0000)
implement an at_exit() handler.

libraries/libldap/init.c

index 0373d3226039eafe49ed78094472442209bafb0c..80bd75f0b3414d9ae90c1827b0115a4e62fde4d0 100644 (file)
@@ -360,6 +360,9 @@ void ldap_int_initialize( void )
        gopts.ldo_tm_api = (struct timeval *)NULL;
        gopts.ldo_tm_net = (struct timeval *)NULL;
 
+       /* ldo_defludp is leaked, we should have an at_exit() handler
+        * to free this and whatever else needs to cleaned up. 
+        */
        ldap_url_parselist(&gopts.ldo_defludp, "ldap://localhost/");
        gopts.ldo_defport = LDAP_PORT;