diff options
author | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2022-04-28 13:13:14 -0700 |
---|---|---|
committer | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2022-04-28 13:13:14 -0700 |
commit | fcc02efbff337c05bf448231cd8bfbe016939f8a (patch) | |
tree | 4114353a7337f830827a3bfcf1552a50367ed0c2 /match.c | |
parent | 23fb49962b01b71f258bcd7933760aa609c453fb (diff) | |
download | dartboat-fcc02efbff337c05bf448231cd8bfbe016939f8a.tar.gz dartboat-fcc02efbff337c05bf448231cd8bfbe016939f8a.tar.xz |
web: the bot should have his own dartboard
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); } |