From: Volker Lendecke Date: Mon, 20 Nov 2023 14:53:48 +0000 (+0100) Subject: profile: Fix a small memleak X-Git-Tag: talloc-2.4.2~272 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8c08b70503e8168a864db2d612b247c853821fd0;p=thirdparty%2Fsamba.git profile: Fix a small memleak Signed-off-by: Volker Lendecke Reviewed-by: Guenther Deschner --- 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; }