diff options
Diffstat (limited to 'match.c')
-rw-r--r-- | match.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -14,9 +14,12 @@ struct leg *leg_init(int points, char *name) void leg_free(struct leg *l) { - for (int i = 0; i < l->n_visits; ++i) + for (int i = 0; i < l->n_visits; ++i) { if (l->visits[i].darts) free(l->visits[i].darts); + if (l->visits[i].ccoords) + free(l->visits[i].ccoords); + } free(l->visits); free(l); } |