Commit 8d84f282 authored by Geoff Simmons's avatar Geoff Simmons

free header tries properly

parent 2b404e42
......@@ -1556,6 +1556,12 @@ FMT_Fini(void)
free_incl(bincl);
free_incl(rincl);
for (int i = 0; i < MAX_VSL_TAG; i++)
if (hdr_trie[i] != NULL) {
HDR_Fini(hdr_trie[i]);
hdr_trie[i] = NULL;
}
if (!VSB_EMPTY(config.cformat))
free_format(&cformat);
if (!VSB_EMPTY(config.bformat))
......
......@@ -225,5 +225,6 @@ HDR_Fini(struct hdrt_node *hdrt)
free(hdrt->str);
for (int i = 0; i < 64; i++)
HDR_Fini(hdrt->next[i]);
free(hdrt->next);
FREE_OBJ(hdrt);
}
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