Properly handle when objects cannot be folded

Fix #579.
This commit is contained in:
William Langford committed 2014-09-22 20:14:46 -04:00
1 parent 456bafa82f
commit f7a2af7052
1 file changed
+2
+2
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);