Commit 493c74bb authored by Geoff Simmons's avatar Geoff Simmons

call pthread_key_delete() for the thread-local key in the fini function

parent cbd7e324
...@@ -140,6 +140,7 @@ vmod_regex__fini(struct vmod_re_regex **rep) ...@@ -140,6 +140,7 @@ vmod_regex__fini(struct vmod_re_regex **rep)
re = *rep; re = *rep;
*rep = NULL; *rep = NULL;
AZ(pthread_key_delete(re->ovk));
CHECK_OBJ_NOTNULL(re, VMOD_RE_REGEX_MAGIC); CHECK_OBJ_NOTNULL(re, VMOD_RE_REGEX_MAGIC);
if (re->vre != NULL) if (re->vre != NULL)
VRE_free(&re->vre); VRE_free(&re->vre);
......
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