mirror of
https://github.com/zeek/zeek.git
synced 2025-10-03 15:18:20 +00:00
BIT-1785: fix scripts able to access uninitialized variables.
This commit is contained in:
parent
3cfe8cd294
commit
c857f5c4dd
5 changed files with 38 additions and 0 deletions
|
@ -33,6 +33,15 @@ Frame::~Frame()
|
|||
Release();
|
||||
}
|
||||
|
||||
void Frame::Reset(int startIdx)
|
||||
{
|
||||
for ( int i = startIdx; i < size; ++i )
|
||||
{
|
||||
Unref(frame[i]);
|
||||
frame[i] = 0;
|
||||
}
|
||||
}
|
||||
|
||||
void Frame::Release()
|
||||
{
|
||||
for ( int i = 0; i < size; ++i )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue