Fix memory leak in broker type checking

This commit is contained in:
Jon Siwek 2018-10-03 11:09:04 -05:00
parent 98181dd67c
commit 3c395aa22d
3 changed files with 5 additions and 3 deletions

View file

@ -1,4 +1,8 @@
2.6-beta2-18 | 2018-10-03 11:09:04 -0500
* Fix memory leak in broker type checking (Jon Siwek, Corelight)
2.6-beta2-17 | 2018-10-02 16:05:10 -0500 2.6-beta2-17 | 2018-10-02 16:05:10 -0500
* Update testing/btest/README (Jon Siwek, Corelight) * Update testing/btest/README (Jon Siwek, Corelight)

View file

@ -1 +1 @@
2.6-beta2-17 2.6-beta2-18

View file

@ -684,8 +684,6 @@ struct type_checker {
return false; return false;
} }
auto list_val = new ListVal(TYPE_ANY);
for ( auto i = 0u; i < indices_to_check.size(); ++i ) for ( auto i = 0u; i < indices_to_check.size(); ++i )
{ {
auto expect = (*expected_index_types)[i]; auto expect = (*expected_index_types)[i];