summaryrefslogtreecommitdiffstats
path: root/source3/lib
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2013-12-28 14:18:32 +0100
committerJeremy Allison <jra@samba.org>2014-02-20 11:43:08 -0800
commiteb4b319a8e4226ae6cdc017078a029d9a6a3e143 (patch)
treec8bb475a6bbeb873989a059ee62f154adcb6b100 /source3/lib
parent69300c034f64e86439d2898a5832a400a8ee319a (diff)
downloadsamba-eb4b319a8e4226ae6cdc017078a029d9a6a3e143.tar.gz
samba-eb4b319a8e4226ae6cdc017078a029d9a6a3e143.tar.xz
samba-eb4b319a8e4226ae6cdc017078a029d9a6a3e143.zip
messaging: Fix a memleak on error in messaging_tdb_init
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Kai Blin <kai@samba.org>
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/messages_local.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/lib/messages_local.c b/source3/lib/messages_local.c
index 4f8d81c8bfe..acc5ba6e7da 100644
--- a/source3/lib/messages_local.c
+++ b/source3/lib/messages_local.c
@@ -106,6 +106,7 @@ NTSTATUS messaging_tdb_init(struct messaging_context *msg_ctx,
lp_ctx = loadparm_init_s3(result, loadparm_s3_helpers());
if (lp_ctx == NULL) {
DEBUG(0, ("loadparm_init_s3 failed\n"));
+ TALLOC_FREE(result);
return NT_STATUS_INTERNAL_ERROR;
}