mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-03 21:50:49 -05:00
Plug a couple of minor memory leaks
This commit is contained in:
parent
b800a28c1e
commit
3cada60a1b
2 changed files with 5 additions and 0 deletions
|
|
@ -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 );
|
||||
|
|
|
|||
Loading…
Reference in a new issue