mirror of
https://github.com/zeek/zeek.git
synced 2025-10-09 18:18:19 +00:00
Scope: fix memory leak by removing duplicate copy_string() call
The `ID` constructor also calls copy_string().
This commit is contained in:
parent
32bb019e3a
commit
a458827292
1 changed files with 1 additions and 1 deletions
|
@ -59,7 +59,7 @@ Scope::~Scope()
|
|||
|
||||
ID* Scope::GenerateTemporary(const char* name)
|
||||
{
|
||||
return new ID(copy_string(name), SCOPE_FUNCTION, false);
|
||||
return new ID(name, SCOPE_FUNCTION, false);
|
||||
}
|
||||
|
||||
id_list* Scope::GetInits()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue