From: Kurt Zeilenga Date: Wed, 2 Feb 2000 21:26:36 +0000 (+0000) Subject: Add comment about leaked on exit values.... we likely should X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~3202 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=2549654bb5f5220d6976ef741b7ad811b8e16787;p=openldap Add comment about leaked on exit values.... we likely should implement an at_exit() handler. --- diff --git a/libraries/libldap/init.c b/libraries/libldap/init.c index 0373d32260..80bd75f0b3 100644 --- a/libraries/libldap/init.c +++ b/libraries/libldap/init.c @@ -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;