Skip to content
Snippets Groups Projects
Commit 3cada60a authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

Plug a couple of minor memory leaks

parent b800a28c
Branches
Tags
No related merge requests found
......@@ -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 );
......
......@@ -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 );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment