Move from Jansson to JV - interpreter loop

Passes tests, but leaks some memory.
This commit is contained in:
Stephen Dolan committed 2012-09-02 17:20:13 +01:00
1 parent 2cb9a6e61d
commit f72c5ffac0
7 files changed
+90 -103

No files matched your search

+1 -1
View File
@@ -239,7 +239,7 @@ jv jv_array_concat(jv a, jv b) {
assert(jv_get_kind(b) == JV_KIND_ARRAY);
// FIXME: could be much faster
for (int i=0; i<jv_array_length(b); i++) {
for (int i=0; i<jv_array_length(jv_copy(b)); i++) {
a = jv_array_append(a, jv_array_get(jv_copy(b), i));
}
jv_free(b);