git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
201d113
)
profile: Fix a small memleak
author
Volker Lendecke
<vl@samba.org>
Mon, 20 Nov 2023 14:53:48 +0000
(15:53 +0100)
committer
Günther Deschner
<gd@samba.org>
Tue, 19 Dec 2023 16:05:36 +0000
(16:05 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
source3/profile/profile.c
patch
|
blob
|
history
diff --git
a/source3/profile/profile.c
b/source3/profile/profile.c
index 6decb855282a8f861f70fc01bc2621303d62bdd5..cf35db7877394bd4a5bf33880bd0cb9eeed8a273 100644
(file)
--- a/
source3/profile/profile.c
+++ b/
source3/profile/profile.c
@@
-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;
}