From 3eee52b44daa8544e1c1fb609f901a3a96b29b25 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Fri, 22 Jun 2018 17:11:53 +0200 Subject: [PATCH] pthreadpool: allocate glue->tctx on glue as memory context. This means it will go aways together with glue and thte event context. Signed-off-by: Stefan Metzmacher Reviewed-by: Ralph Boehme Autobuild-User(master): Stefan Metzmacher Autobuild-Date(master): Thu Jul 12 17:18:01 CEST 2018 on sn-devel-144 --- lib/pthreadpool/pthreadpool_tevent.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pthreadpool/pthreadpool_tevent.c b/lib/pthreadpool/pthreadpool_tevent.c index 5da1f22e91c..e7e17d3bf0f 100644 --- a/lib/pthreadpool/pthreadpool_tevent.c +++ b/lib/pthreadpool/pthreadpool_tevent.c @@ -278,7 +278,7 @@ static int pthreadpool_tevent_register_ev(struct pthreadpool_tevent *pool, glue->ev_link = ev_link; #ifdef HAVE_PTHREAD - glue->tctx = tevent_threaded_context_create(pool, ev); + glue->tctx = tevent_threaded_context_create(glue, ev); if (glue->tctx == NULL) { TALLOC_FREE(ev_link); TALLOC_FREE(glue); -- 2.11.4.GIT