Skip to content

Commit d9522c9

Browse files
tb_init verifies if already initialized by checking if pieceEntry is
NULL. tb_free DID free that memory but did not set the variable to NULL hence confusing the init part.
1 parent b54fe93 commit d9522c9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/tbprobe.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1019,7 +1019,9 @@ void tb_free(void)
10191019
{
10201020
tb_init("");
10211021
free(pieceEntry);
1022+
pieceEntry = NULL;
10221023
free(pawnEntry);
1024+
pawnEntry = NULL;
10231025
}
10241026

10251027
static const int8_t OffDiag[] = {

0 commit comments

Comments
 (0)