Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/topic/jsiwek/fix-ConnectionEvent…
Browse files Browse the repository at this point in the history
…-leak'

* origin/topic/jsiwek/fix-ConnectionEvent-leak:
  Fix memory leak in deprecated Analyzer::ConnectionEvent()
  • Loading branch information
0xxon committed Nov 17, 2020
2 parents e1c07ff + 6503068 commit 995d889
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@

3.3.0-dev.546 | 2020-11-17 11:50:47 +0000

* Fix memory leak in deprecated Analyzer::ConnectionEvent() (Jon Siwek, Corelight)

3.3.0-dev.543 | 2020-11-16 11:50:49 -0800

* GH-352: Improve HTTP::match_sql_injection_uri regex (Jon Siwek, Corelight)
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.3.0-dev.543
3.3.0-dev.546
1 change: 1 addition & 0 deletions src/analyzer/Analyzer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -811,6 +811,7 @@ void Analyzer::Event(EventHandlerPtr f, Val* v1, Val* v2)
void Analyzer::ConnectionEvent(EventHandlerPtr f, ValPList* vl)
{
auto args = val_list_to_args(*vl);
delete vl;

if ( f )
conn->EnqueueEvent(f, this, std::move(args));
Expand Down

0 comments on commit 995d889

Please sign in to comment.