mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-28 10:39:34 -05:00
ITS#10348 Relase memory allocated from ch_malloc in 2 error handling branches.
This commit is contained in:
parent
ddea2bc669
commit
8cf1812431
2 changed files with 2 additions and 0 deletions
|
|
@ -824,6 +824,7 @@ ldap_back_monitor_ops_init(
|
|||
"ldap_back_monitor_ops_init: "
|
||||
"unable to register entry \"%s\" for monitoring\n",
|
||||
e->e_name.bv_val );
|
||||
ch_free( counter );
|
||||
ch_free( cb );
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3696,6 +3696,7 @@ syncrepl_dirsync_message(
|
|||
Debug( LDAP_DEBUG_ANY,
|
||||
"syncrepl_dirsync_message: %s unknown attributeType %s\n",
|
||||
si->si_ridtxt, tmp.sml_type.bv_val );
|
||||
ch_free( mod );
|
||||
return rc;
|
||||
}
|
||||
mod->sml_desc = ad;
|
||||
|
|
|
|||
Loading…
Reference in a new issue