diff options
| author | tslil clingman <tslil@posteo.de> | 2021-01-25 00:12:26 -0500 |
|---|---|---|
| committer | tslil <tslil@posteo.de> | 2026-08-28 19:37:41 +0100 |
| commit | d96ea8235a63bcb75e8b13286e84ee1b4168d127 (patch) | |
| tree | 17e15f550863b6b5e11ca32de8643a7f6dc3b5ec /src | |
| parent | cb143299411851667a8e3aae4d7a55f729694b12 (diff) | |
Memory leak fix
Diffstat (limited to 'src')
| -rw-r--r-- | src/ctaklm.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/ctaklm.c b/src/ctaklm.c index 1ccc1d0..ea758ae 100644 --- a/src/ctaklm.c +++ b/src/ctaklm.c @@ -416,10 +416,11 @@ main(int argc, char **argv) { (void)(argc); (void)(argv); - negamax_search_depth = 3; + negamax_search_depth = 2; new_game(5); negamax_init(5); tt_init(); + // Test harness if (argc > 1) { negamax_search_depth = 5; @@ -447,9 +448,11 @@ main(int argc, char **argv) { human = 1; } } + free(line); + line = NULL; } else { playing = 0; - break; + human = 1; } } if (playing) { @@ -458,6 +461,9 @@ main(int argc, char **argv) { } } + free(line); + free(gamelog); + negamax_free(); return EXIT_SUCCESS; |
