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:
Emanuele Torre authored and Nico Williams committed 2023-07-27 20:59:35 -05:00
1 parent 5b9d0750db
commit 17889a1a85
3 files changed
+24 -18

No files matched your search

+1
View File
@@ -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),