From 4e4818771c26a4c02808130970f2a5e4c216ef52 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Wed, 18 Dec 2002 22:44:13 +0000 Subject: [PATCH] Plug memory leak --- servers/slapd/saslauthz.c | 1 + 1 file changed, 1 insertion(+) diff --git a/servers/slapd/saslauthz.c b/servers/slapd/saslauthz.c index aa01dca507..b243542d9e 100644 --- a/servers/slapd/saslauthz.c +++ b/servers/slapd/saslauthz.c @@ -588,6 +588,7 @@ void slap_sasl2dn( Connection *conn, } rc = slap_parseURI( ®out, &dn, &scope, &filter ); + if( regout.bv_val ) ch_free( regout.bv_val ); if( rc != LDAP_SUCCESS ) { goto FINISHED; } -- 2.39.5