mirror of
https://github.com/zeek/zeek.git
synced 2025-10-06 16:48:19 +00:00
Fix mem leak when unserializing table entry fails.
Shouldn't happen in practice.
This commit is contained in:
parent
766cc0d220
commit
75d469532c
1 changed files with 4 additions and 0 deletions
|
@ -2463,7 +2463,11 @@ bool TableVal::DoUnserialize(UnserialInfo* info)
|
||||||
|
|
||||||
if ( ! UNSERIALIZE(&entry_val->last_access_time) ||
|
if ( ! UNSERIALIZE(&entry_val->last_access_time) ||
|
||||||
! UNSERIALIZE(&eat) )
|
! UNSERIALIZE(&eat) )
|
||||||
|
{
|
||||||
|
entry_val->Unref();
|
||||||
|
delete entry_val;
|
||||||
return false;
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
entry_val->SetExpireAccess(eat);
|
entry_val->SetExpireAccess(eat);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue