]> 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>
Mon, 8 Sep 2025 22:08:21 +0000 (22:08 +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 7a92f09e3d6be677ea7677ab3886a3b405063218..4679fb1a3dc970e80c0e19ea3fdb6ddf75f5513b 100644 (file)
@@ -3677,6 +3677,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;