diff --git a/src/game.c b/src/game.c index 50589b2..d584220 100644 --- a/src/game.c +++ b/src/game.c @@ -80,6 +80,8 @@ int game(int colonnes, int lignes) { i++; } } + free(file); + timer = start_timer(0); boucle = 1; @@ -98,5 +100,11 @@ int game(int colonnes, int lignes) { } } + for (l = 0; l < lignes; l++) { + for (c = 0; c < colonnes; c++) { + free(cards[l][c].file); + } + } + return fin(timer); } \ No newline at end of file