From 9c78331ef2ebe2f1dcef886b0043431469bc1a29 Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Sun, 17 Sep 2023 23:38:46 +0200 Subject: Fixed various memory leaks --- src/moves.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/moves.c') diff --git a/src/moves.c b/src/moves.c index 955e8cf..6ed1b5d 100644 --- a/src/moves.c +++ b/src/moves.c @@ -481,7 +481,7 @@ init_moves(void) } if (read_mtables_file()) - return; + goto init_moves_end; fprintf(stderr, "Cannot load %s, generating it\n", "mtables"); @@ -541,6 +541,7 @@ init_moves(void) if (!write_mtables_file()) fprintf(stderr, "Error writing mtables\n"); +init_moves_end: for (i = 0; i < NMOVES; i++) free_alg(equiv_alg[i]); } -- cgit v1.3