mirror of
https://github.com/zeek/zeek.git
synced 2025-10-12 11:38:20 +00:00
parse.y: fix memory leak after "&derepcated" without string
The "TOK_CONSTANT" leaks.
This commit is contained in:
parent
7f97f74203
commit
32786c7645
1 changed files with 1 additions and 0 deletions
|
@ -1363,6 +1363,7 @@ attr:
|
|||
{
|
||||
ODesc d;
|
||||
$3->Describe(&d);
|
||||
Unref($3);
|
||||
reporter->Error("'&deprecated=%s' must use a string literal",
|
||||
d.Description());
|
||||
$$ = new Attr(ATTR_DEPRECATED);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue