mirror of
https://github.com/zeek/zeek.git
synced 2025-10-08 01:28:20 +00:00
Fix memory leak in EnumType.
Introduced in ca3f7eadbe
.
This took a while to find.
This commit is contained in:
parent
a3b7c91ba4
commit
e7611e8521
1 changed files with 1 additions and 0 deletions
|
@ -1682,6 +1682,7 @@ bool EnumType::DoUnserialize(UnserialInfo* info)
|
|||
return false;
|
||||
|
||||
names[name] = val;
|
||||
delete [] name; // names[name] converts to std::string
|
||||
}
|
||||
|
||||
return true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue