Commit cbd7e324 authored by Geoff Simmons's avatar Geoff Simmons

remove free() as the destructor function for thread-local keys, since

the addresses used as values point to workspace or static memory,
which are free'd by other means
parent b84b2b37
...@@ -93,7 +93,7 @@ vmod_regex__init(const struct vrt_ctx *ctx, struct vmod_re_regex **rep, ...@@ -93,7 +93,7 @@ vmod_regex__init(const struct vrt_ctx *ctx, struct vmod_re_regex **rep,
AN(re); AN(re);
*rep = re; *rep = re;
AZ(pthread_key_create(&re->ovk, free)); AZ(pthread_key_create(&re->ovk, NULL));
re->erroffset = 0; re->erroffset = 0;
re->error = NULL; re->error = 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