1
0
mirror of https://github.com/stedolan/jq.git synced 2024-05-11 05:55:39 +00:00

Properly handle when objects cannot be folded

Fix #579.
This commit is contained in:
William Langford
2014-09-22 20:11:07 -04:00
parent 456bafa82f
commit f7a2af7052

View File

@ -557,6 +557,8 @@ block gen_const_object(block expr) {
break;
}
o = jv_object_set(o, k, v);
k = jv_null();
v = jv_null();
}
if (!is_const) {
jv_free(o);