From 546209fa2fb3616033d0353aa613ba82eb2a7275 Mon Sep 17 00:00:00 2001 From: Markus Uhlin Date: Sat, 25 May 2024 22:38:27 +0200 Subject: Fixed resource leaks --- FICS/ratings.c | 1 + 1 file changed, 1 insertion(+) (limited to 'FICS/ratings.c') 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; } -- cgit v1.2.3