From 8c08b70503e8168a864db2d612b247c853821fd0 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Mon, 20 Nov 2023 15:53:48 +0100 Subject: [PATCH] profile: Fix a small memleak Signed-off-by: Volker Lendecke Reviewed-by: Guenther Deschner --- source3/profile/profile.c | 1 + 1 file changed, 1 insertion(+) diff --git a/source3/profile/profile.c b/source3/profile/profile.c index 6decb855282..cf35db78773 100644 --- 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; } -- 2.47.3