Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Volker Lendecke <vl@samba.org>
Autobuild-Date(master): Sun Sep 8 13:39:25 CEST 2013 on sn-devel-104
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;