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:
parent
201d113d1e
commit
8c08b70503
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user