Double free when destroying the MCTS params
I had an error running the stupid example for flatpak: https://framagit.org/play-tarot/tarot-flatpak/-/jobs/373698
Running locally I get:
==28759== Invalid free() / delete / delete[] / realloc()
==28759== at 0x48369AB: free (vg_replace_malloc.c:530)
==28759== by 0x120571: tarot_mcts_params_destroy (main.c:314)
==28759== by 0x120571: tarot_main (main.c:2030)
==28759== by 0x60BF09A: (below main) (libc-start.c:308)
==28759== Address 0xa3cbdf0 is 0 bytes inside a block of size 3 free'd
==28759== at 0x48369AB: free (vg_replace_malloc.c:530)
==28759== by 0x11284B: tarot_run_interactive (tarot_cli.c:1853)
==28759== by 0x1213E7: tarot_main (main.c:1958)
==28759== by 0x60BF09A: (below main) (libc-start.c:308)
==28759== Block was alloc'd at
==28759== at 0x483577F: malloc (vg_replace_malloc.c:299)
==28759== by 0x5DA2900: g_malloc (in /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0.5800.3)
==28759== by 0x5DBC4CE: g_strdup (in /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0.5800.3)
==28759== by 0x11FFEC: tarot_main (main.c:1372)
==28759== by 0x60BF09A: (below main) (libc-start.c:308)