aboutsummaryrefslogtreecommitdiffstats
path: root/FICS/ratings.c
diff options
context:
space:
mode:
authorMarkus Uhlin <markus@nifty-networks.net>2024-05-25 22:38:27 +0200
committerMarkus Uhlin <markus@nifty-networks.net>2024-05-25 22:38:27 +0200
commit546209fa2fb3616033d0353aa613ba82eb2a7275 (patch)
treee4eccf7c25676f8d8c0ca85b16ce3ec377b225c3 /FICS/ratings.c
parent73bd34fe93ae1b9c184ffa896fcfa4acbb451e88 (diff)
Fixed resource leaks
Diffstat (limited to 'FICS/ratings.c')
-rw-r--r--FICS/ratings.c1
1 files changed, 1 insertions, 0 deletions
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;
}