[SCM] Samba Shared Repository - branch master updated

Anoop C S anoopcs at samba.org
Mon Aug 18 12:04:02 UTC 2025


The branch, master has been updated
       via  66968d4d7a2 pdb_ldap: Fix memory leak CID#1363095
      from  65d86082338 smbd: improve lease break when handling overwrite create disposition

https://git.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit 66968d4d7a282717bf26962a84e1c38613e5104e
Author: Vinit Agnihotri <vagnihot at redhat.com>
Date:   Mon Aug 18 13:02:04 2025 +0530

    pdb_ldap: Fix memory leak CID#1363095
    
    Signed-off-by: Vinit Agnihotri <vagnihot at redhat.com>
    Reviewed-by: Guenther Deschner <gd at samba.org>
    Reviewed-by: Anoop C S <anoopcs at samba.org>
    
    Autobuild-User(master): Anoop C S <anoopcs at samba.org>
    Autobuild-Date(master): Mon Aug 18 12:03:30 UTC 2025 on atb-devel-224

-----------------------------------------------------------------------

Summary of changes:
 source3/passdb/pdb_ldap.c | 1 +
 1 file changed, 1 insertion(+)


Changeset truncated at 500 lines:

diff --git a/source3/passdb/pdb_ldap.c b/source3/passdb/pdb_ldap.c
index 1e3779fc6cf..14b3dfc2493 100644
--- a/source3/passdb/pdb_ldap.c
+++ b/source3/passdb/pdb_ldap.c
@@ -2195,6 +2195,7 @@ static NTSTATUS ldapsam_add_sam_account(struct pdb_methods *my_methods, struct s
 	filter = talloc_strdup(attr_list, "(uid=%u)");
 	if (!filter) {
 		status = NT_STATUS_NO_MEMORY;
+		TALLOC_FREE(escape_user);
 		goto fn_exit;
 	}
 	filter = talloc_all_string_sub(attr_list, filter, "%u", escape_user);


-- 
Samba Shared Repository



More information about the samba-cvs mailing list