summaryrefslogtreecommitdiffstats
path: root/src/jplist.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/jplist.c')
-rw-r--r--src/jplist.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/jplist.c b/src/jplist.c
index 827b367..65eb528 100644
--- a/src/jplist.c
+++ b/src/jplist.c
@@ -663,6 +663,7 @@ static plist_t parse_object(const char* js, jsmntok_info_t* ti, int* index)
if (val) {
plist_dict_set_item(obj, key, val);
} else {
+ free(key);
plist_free(obj);
return NULL;
}