Skip to content

Commit

Permalink
Merge pull request #868 from appneta/Bug_#867_tcpprep_memory_leak_regex
Browse files Browse the repository at this point in the history
Bug #867 - run regfree() on close
  • Loading branch information
fklassen authored Jun 5, 2024
2 parents 14b7e85 + 804cacb commit d16b027
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 d16b027

Please sign in to comment.