Skip to content

Commit

Permalink
Bug #867 - run regfree() on close
Browse files Browse the repository at this point in the history
  • Loading branch information
fklassen committed Jun 5, 2024
1 parent 14b7e85 commit 804cacb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
06/03/2024 Version 4.5.0-beta1
- memory leak in tcpprep when using RegEx (#867)
- fix nansecond timestamp regression bug (#863)
- autotools - AC_HELP_STRING is obsolete in 2.70 (#856)
- configure.ac: do not run conftest in case of cross compilation (#849)
Expand Down
2 changes: 2 additions & 0 deletions src/tcpprep.c
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,8 @@ main(int argc, char *argv[])
/* close cache file */
close(out_file);

regfree(&tcpprep->options->preg);

tcpprep_close(tcpprep);

restore_stdin();
Expand Down

0 comments on commit 804cacb

Please sign in to comment.