summaryrefslogtreecommitdiffabout
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--src/json-gram.y1
-rw-r--r--src/jsonfmt.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/json-gram.y b/src/json-gram.y
index ab65362..ca50097 100644
--- a/src/json-gram.y
+++ b/src/json-gram.y
@@ -215,6 +215,7 @@ json_value_free(struct json_value *obj)
case json_arr:
for (i = 0; i < obj->v.a->oc; i++)
json_value_free(obj->v.a->ov[i]);
+ grecs_free (obj->v.a->ov);
if (obj->v.a->ol) {
obj->v.a->ol->free_entry = objfree;
grecs_list_free(obj->v.a->ol);
diff --git a/src/jsonfmt.c b/src/jsonfmt.c
index 0687faf..0f44536 100644
--- a/src/jsonfmt.c
+++ b/src/jsonfmt.c
@@ -147,6 +147,7 @@ json_format_obj(struct json_format *fmt, struct json_value *obj, size_t level)
}
}
json_writec(fmt, '}');
+ grecs_free(keypairs);
}
static void

Return to:

Send suggestions and report system problems to the System administrator.