From ee64d3f1d89a3ceb61d035e776c8235a19c8a2cf Mon Sep 17 00:00:00 2001 From: Ralph Boehme Date: Thu, 15 Sep 2016 14:19:51 +0200 Subject: [PATCH] s4/messaging: let the imessaging ctx destructor free msg_dgm_ref BUG: https://bugzilla.samba.org/show_bug.cgi?id=12272 Signed-off-by: Ralph Boehme Reviewed-by: Jeremy Allison --- source4/lib/messaging/messaging.c | 1 + 1 file changed, 1 insertion(+) diff --git a/source4/lib/messaging/messaging.c b/source4/lib/messaging/messaging.c index ea50627c2bd..d0beef66241 100644 --- a/source4/lib/messaging/messaging.c +++ b/source4/lib/messaging/messaging.c @@ -304,6 +304,7 @@ static struct imessaging_context *msg_ctxs; static int imessaging_context_destructor(struct imessaging_context *msg) { DLIST_REMOVE(msg_ctxs, msg); + TALLOC_FREE(msg->msg_dgm_ref); return 0; }