From 3cada60a1bc2efccdc3b3ce49613ae5d689bcd69 Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Fri, 21 Jul 2000 17:25:41 +0000 Subject: [PATCH] Plug a couple of minor memory leaks --- servers/slapd/mr.c | 2 ++ servers/slapd/syntax.c | 3 +++ 2 files changed, 5 insertions(+) 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 ); -- 2.39.5