From: Kurt Zeilenga Date: Fri, 21 Jul 2000 17:25:41 +0000 (+0000) Subject: Plug a couple of minor memory leaks X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~2398 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=3cada60a1bc2efccdc3b3ce49613ae5d689bcd69;p=openldap Plug a couple of minor memory leaks --- diff --git a/servers/slapd/mr.c b/servers/slapd/mr.c index d84694450c..23c0f70bfb 100644 --- a/servers/slapd/mr.c +++ b/servers/slapd/mr.c @@ -180,6 +180,8 @@ register_matching_rule( convert, normalize, match, indexer, filter, &err ); + ldap_memfree( mr ); + if ( code ) { Debug( LDAP_DEBUG_ANY, "Error in register_syntax: %s for %s in %s\n", scherr2str(code), err, desc ); diff --git a/servers/slapd/syntax.c b/servers/slapd/syntax.c index 52521da78f..404744950e 100644 --- a/servers/slapd/syntax.c +++ b/servers/slapd/syntax.c @@ -156,6 +156,9 @@ register_syntax( } code = syn_add( syn, flags, validate, ber2str, str2ber, &err ); + + ldap_memfree( syn ); + if ( code ) { Debug( LDAP_DEBUG_ANY, "Error in register_syntax: %s %s in %s\n", scherr2str(code), err, desc );