ITS#10348 Relase memory allocated from ch_malloc in 2 error handling branches.

This commit is contained in:
jinyaoguo 2025-06-03 17:00:11 -04:00 committed by Quanah Gibson-Mount
parent ddea2bc669
commit 8cf1812431
2 changed files with 2 additions and 0 deletions

View file

@ -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;
}

View file

@ -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;