summaryrefslogtreecommitdiff
path: root/lib/pthreadpool
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2018-06-22 17:11:53 +0200
committerStefan Metzmacher <metze@samba.org>2018-07-12 17:18:00 +0200
commit3eee52b44daa8544e1c1fb609f901a3a96b29b25 (patch)
tree1f473a92500f51191eace8aea1a81a83431e4bf3 /lib/pthreadpool
parent25756425aaf5465e56ea809cd415b6a387848919 (diff)
downloadsamba-3eee52b44daa8544e1c1fb609f901a3a96b29b25.tar.gz
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 <metze@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org> Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Thu Jul 12 17:18:01 CEST 2018 on sn-devel-144
Diffstat (limited to 'lib/pthreadpool')
-rw-r--r--lib/pthreadpool/pthreadpool_tevent.c2
1 files changed, 1 insertions, 1 deletions
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);