From: Stefan Metzmacher Date: Fri, 22 Jun 2018 15:11:53 +0000 (+0200) Subject: pthreadpool: allocate glue->tctx on glue as memory context. X-Git-Tag: ldb-1.5.0~318 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3eee52b44daa8544e1c1fb609f901a3a96b29b25;p=thirdparty%2Fsamba.git 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 --- 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);