Skip to content

Commit

Permalink
free memory for both SIGNHDRS and OVERSIGNHDRS option processing usin…
Browse files Browse the repository at this point in the history
…g ARC_OP_SETOPT
  • Loading branch information
Gene Hightower committed Sep 12, 2020
1 parent 13bccde commit 11810c7
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions libopenarc/arc.c
Original file line number Diff line number Diff line change
Expand Up @@ -834,11 +834,10 @@ arc_init(void)
void
arc_close(ARC_LIB *lib)
{
if (lib->arcl_signre)
{
(void) regfree(&lib->arcl_hdrre);
lib->arcl_signre = FALSE;
}
arc_options(lib, ARC_OP_SETOPT, ARC_OPTS_SIGNHDRS,
NULL, sizeof(char**));
arc_options(lib, ARC_OP_SETOPT, ARC_OPTS_OVERSIGNHDRS,
NULL, sizeof(char**));
ARC_FREE(lib->arcl_flist);
ARC_FREE(lib);
}
Expand Down

0 comments on commit 11810c7

Please sign in to comment.