summaryrefslogtreecommitdiffstats
path: root/mbbsd/chc.c
diff options
context:
space:
mode:
Diffstat (limited to 'mbbsd/chc.c')
-rw-r--r--mbbsd/chc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/mbbsd/chc.c b/mbbsd/chc.c
index 77b12c41..e201bc91 100644
--- a/mbbsd/chc.c
+++ b/mbbsd/chc.c
@@ -901,6 +901,9 @@ chc_gameend(ChessInfo* info, ChessGameResult result)
currutmp->chess_elo_rating = user1->rating;
chcusr_put(&cuser, user1);
passwd_update(usernum, &cuser);
+ } else if (info->mode == CHESS_MODE_REPLAY) {
+ free(info->board);
+ free(info->tag);
}
}