summaryrefslogtreecommitdiffstats
path: root/source3/lib/messages_local.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/lib/messages_local.c')
-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 4f8d81c8bf..acc5ba6e7d 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;
}