Commit bba87ed2 authored by Geoff Simmons's avatar Geoff Simmons

get rid of the debugging code for ws allocations via pcre2 general contexts

parent 99636168
......@@ -125,22 +125,12 @@ event(VRT_CTX, struct vmod_priv *priv, enum vcl_event_e e)
static void *
ws_malloc(PCRE2_SIZE sz, void *ws)
{
void *p;
VSL(SLT_Debug, 0, "sz = %zu, ws = %p", sz, ws);
WS_Assert(ws);
VSL(SLT_Debug, 0, "WS_Asserted");
//return WS_Alloc(ws, sz);
p = WS_Alloc(ws, sz);
VSL(SLT_Debug, 0, "WS_Alloced %p", p);
return p;
return WS_Alloc(ws, sz);
}
static void
ws_free(void *ptr, void *ws)
{
VSL(SLT_Debug, 0, "free ptr = %p, ws = %p", ptr, ws);
WS_Assert(ws);
WS_Assert_Allocated(ws, ptr, 0);
}
......@@ -399,8 +389,6 @@ vmod_regex_match(VRT_CTX, struct vmod_pcre2_regex *regex,
* allocator.
*/
if (gctx_task->priv == NULL) {
VSLb(ctx->vsl, SLT_Debug, "ws_malloc = %p, ws_free = %p",
ws_malloc, ws_free);
gctx = pcre2_general_context_create(ws_malloc, ws_free,
ctx->ws);
if (gctx == NULL) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment