From 8f4069c7cd10a143286c7a32c1b612380afd7c72 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Fri, 6 Sep 2013 15:37:56 -0700 Subject: tevent: Use talloc_pooled_object for tevent_req_create Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison Autobuild-User(master): Volker Lendecke Autobuild-Date(master): Sun Sep 8 13:39:25 CEST 2013 on sn-devel-104 --- lib/tevent/tevent_req.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/tevent/tevent_req.c b/lib/tevent/tevent_req.c index d8d0c5f564..556d9848e1 100644 --- a/lib/tevent/tevent_req.c +++ b/lib/tevent/tevent_req.c @@ -61,10 +61,13 @@ struct tevent_req *_tevent_req_create(TALLOC_CTX *mem_ctx, void **ppdata = (void **)pdata; void *data; - req = talloc_zero(mem_ctx, struct tevent_req); + req = talloc_pooled_object( + mem_ctx, struct tevent_req, 2, + sizeof(struct tevent_immediate) + data_size); if (req == NULL) { return NULL; } + ZERO_STRUCTP(req); req->internal.private_type = type; req->internal.create_location = location; req->internal.finish_location = NULL; -- cgit