Example #1
0
static void cleanup_multiple_query(multiple_query_ctx_t *query_ctx)
{
	if (query_ctx->gen)
		free_json_generator(query_ctx->gen,
		                    &query_ctx->ctx->json_generator,
		                    &query_ctx->ctx->json_generator_num,
		                    query_ctx->ctx->config->max_json_generator);

	free(query_ctx);
}
Example #2
0
static void cleanup_multiple_query(void *data)
{
	const multiple_query_ctx_t * const query_ctx = data;

	if (query_ctx->gen) {
		thread_context_t * const ctx = H2O_STRUCT_FROM_MEMBER(thread_context_t,
		                                                      event_loop.h2o_ctx,
		                                                      query_ctx->req->conn->ctx);

		free_json_generator(query_ctx->gen,
		                    &ctx->json_generator,
		                    &ctx->json_generator_num,
		                    ctx->config->max_json_generator);
	}
}