summaryrefslogtreecommitdiff
path: root/src/json/read.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/json/read.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/json/read.c b/src/json/read.c
index b95bc13..1401633 100644
--- a/src/json/read.c
+++ b/src/json/read.c
@@ -562,6 +562,11 @@ static bool json_read_compound(tagdata_t *data, const stream_t *stream) {
}
if (next.type == TOK_COMMA) {
+ if (json_next_token(&next, stream) == false) {
+ free(tags);
+ free(name);
+ return false;
+ }
continue;
} else if (next.type == TOK_RBRACE) {
break;