aboutsummaryrefslogtreecommitdiff
path: root/src/moves.c
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2023-09-17 23:38:46 +0200
committerSebastiano Tronto <sebastiano@tronto.net>2023-09-17 23:38:46 +0200
commit9c78331ef2ebe2f1dcef886b0043431469bc1a29 (patch)
tree7385d53449ef625f0bbd7d74cb2815f49d0fca84 /src/moves.c
parent7c1cffb3f7c2be0d9ccc954a00b00db3bf4e2899 (diff)
downloadnissy-classic-9c78331ef2ebe2f1dcef886b0043431469bc1a29.tar.gz
nissy-classic-9c78331ef2ebe2f1dcef886b0043431469bc1a29.zip
Fixed various memory leaks
Diffstat (limited to 'src/moves.c')
-rw-r--r--src/moves.c3
1 files changed, 2 insertions, 1 deletions
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)
481 } 481 }
482 482
483 if (read_mtables_file()) 483 if (read_mtables_file())
484 return; 484 goto init_moves_end;
485 485
486 fprintf(stderr, "Cannot load %s, generating it\n", "mtables"); 486 fprintf(stderr, "Cannot load %s, generating it\n", "mtables");
487 487
@@ -541,6 +541,7 @@ init_moves(void)
541 if (!write_mtables_file()) 541 if (!write_mtables_file())
542 fprintf(stderr, "Error writing mtables\n"); 542 fprintf(stderr, "Error writing mtables\n");
543 543
544init_moves_end:
544 for (i = 0; i < NMOVES; i++) 545 for (i = 0; i < NMOVES; i++)
545 free_alg(equiv_alg[i]); 546 free_alg(equiv_alg[i]);
546} 547}

Generated with cgit - Back to sebastiano.tronto.net