1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-07 17:18:11 +03:00

profile: Fix a small memleak

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
This commit is contained in:
Volker Lendecke 2023-11-20 15:53:48 +01:00 committed by Günther Deschner
parent 201d113d1e
commit 8c08b70503

View File

@ -137,6 +137,7 @@ bool profile_setup(struct messaging_context *msg_ctx, bool rdonly)
NULL, db_name, 0,
rdonly ? 0 : TDB_CLEAR_IF_FIRST|TDB_MUTEX_LOCKING,
O_CREAT | (rdonly ? O_RDONLY : O_RDWR), 0644);
TALLOC_FREE(db_name);
if (smbprofile_state.internal.db == NULL) {
return false;
}