Fix memory leak for { $foo: bar }
{ BINDING: ExpD } wasn't freeing BINDING.
Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=60865
This commit is contained in:
1 parent
5b9d0750db
commit
17889a1a85
3 files changed
+24
-18
No files matched your search
@@ -980,6 +980,7 @@ IDENT ':' ExpD {
|
||||
| BINDING ':' ExpD {
|
||||
$$ = gen_dictpair(gen_location(@$, locations, gen_op_unbound(LOADV, jv_string_value($1))),
|
||||
$3);
|
||||
jv_free($1);
|
||||
}
|
||||
| BINDING {
|
||||
$$ = gen_dictpair(gen_const($1),
|
||||
|
||||
Reference in new issue
Block a user