]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#10348 Relase memory allocated from ch_malloc in 2 error handling branches.
authorjinyaoguo <guo846@purdue.edu>
Tue, 3 Jun 2025 21:00:11 +0000 (17:00 -0400)
committerQuanah Gibson-Mount <quanah@openldap.org>
Fri, 20 Jun 2025 14:52:19 +0000 (14:52 +0000)
servers/slapd/back-ldap/monitor.c
servers/slapd/syncrepl.c

index c4df22d4cd628d1bf03537966afa4ecd4d3812a5..b11b1d91cc7e6c2ebde790b7a7a373a03211afeb 100644 (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;
                }
index 9deac37a5fa0a6b9159e083353c00c8b0ebb739a..3a204ddd605c74f71084b6fb896527fd795fc0d1 100644 (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;