pthreadpool: allocate glue->tctx on glue as memory context.
authorStefan Metzmacher <metze@samba.org>
Fri, 22 Jun 2018 15:11:53 +0000 (17:11 +0200)
committerStefan Metzmacher <metze@samba.org>
Thu, 12 Jul 2018 15:18:00 +0000 (17:18 +0200)
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

lib/pthreadpool/pthreadpool_tevent.c

index 5da1f22e91c48b0220afea66ef22a905363c5bf9..e7e17d3bf0f7ce3804a653634039ec987c892a13 100644 (file)
@@ -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);