mirror of
https://github.com/zeek/zeek.git
synced 2025-10-06 08:38:20 +00:00
Fix significant memory leak.
Particularly, unserializing a function is frequent and leaked.
This commit is contained in:
parent
1fbeefedbc
commit
c3a4454892
1 changed files with 3 additions and 0 deletions
|
@ -59,6 +59,9 @@ Val::~Val()
|
|||
if ( type->InternalType() == TYPE_INTERNAL_STRING )
|
||||
delete val.string_val;
|
||||
|
||||
else if ( type->Tag() == TYPE_FUNC )
|
||||
Unref(val.func_val);
|
||||
|
||||
else if ( type->Tag() == TYPE_FILE )
|
||||
Unref(val.file_val);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue