aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--FICS/obsproc.c1
-rw-r--r--FICS/ratings.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/FICS/obsproc.c b/FICS/obsproc.c
index 7645812..5a99b75 100644
--- a/FICS/obsproc.c
+++ b/FICS/obsproc.c
@@ -1823,6 +1823,7 @@ jsave_history(int p, char save_spot, int p1, int from, char *to_file)
pprintf(p, "Please report this to an admin.\n");
fprintf(stderr, "FICS: System command failed "
"in jsave_journalentry\n");
+ fclose(Game);
return;
}
diff --git a/FICS/ratings.c b/FICS/ratings.c
index c0abbbf..92484a1 100644
--- a/FICS/ratings.c
+++ b/FICS/ratings.c
@@ -1437,6 +1437,7 @@ UpdateRank(int type, char *addName, statistics *sNew, char *delName)
if ((fptemp = fopen(TmpRankFile, "w")) == NULL) {
warn("%s: unable to open rank file for updating", __func__);
+ fclose(fp);
return;
}