Merge remote-tracking branch 'origin/topic/jsiwek/fix-ConnectionEvent-leak'

* origin/topic/jsiwek/fix-ConnectionEvent-leak:
  Fix memory leak in deprecated Analyzer::ConnectionEvent()
This commit is contained in:
Johanna Amann 2020-11-17 11:50:47 +00:00
commit 995d889789
3 changed files with 6 additions and 1 deletions

View file

@ -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)

View file

@ -1 +1 @@
3.3.0-dev.543
3.3.0-dev.546

View file

@ -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));