free dynamically allocated matches

This commit is contained in:
Michael Stapelberg
2016-01-09 14:19:00 +01:00
parent 436e4c17b3
commit 8d4bf6c577
2 changed files with 2 additions and 0 deletions

View File

@ -87,6 +87,7 @@ static int json_end_map(void *ctx) {
Match *match = TAILQ_FIRST(&(json_node->swallow_head));
TAILQ_REMOVE(&(json_node->swallow_head), match, matches);
match_free(match);
free(match);
}
}