Skip to content

Commit 2251e99

Browse files
authored
Merge pull request #13 from folkertvanheusden/tb_free
Re-iniitalize pawnEntry and pieceEntry variables to NULL after free, to ensure initialization check in tb_init will detect state as uninitialized if called again.
2 parents cbc09ba + d9522c9 commit 2251e99

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)