ref: d8b909066008d478a8abd30cb329c88d44194730
parent: 98235d9673f41003b14a0e8852785c6582fdff8f
author: Carlin Bingham <[email protected]>
date: Sun Jan 21 17:12:59 EST 2018
Fix some leaks when freeing json Objects and arrays have an underlying slice All types are an elt allocated with mk
--- a/lib/json/parse.myr
+++ b/lib/json/parse.myr
@@ -54,12 +54,15 @@
for e : a
free(e)
;;
+ std.slfree(a)
| &(`Obj o):
for (k, v) : o
std.slfree(k)
free(v)
;;
+ std.slfree(o)
;;
+ std.free(j)
}
const parseelt = {p