Skip to content
Snippets Groups Projects
Commit 3bcf6174 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Always close csts.ini file, even in error path (failure to open dsts.ini)

Fix for CID 509720
parent 3d425a47
No related branches found
No related tags found
No related merge requests found
......@@ -657,12 +657,12 @@ uint sbbs_t::logonstats()
} else {
stats.date = time(NULL);
fwrite_cstats(csts, &stats);
fclose_cstats(csts);
rolloverstats(&stats);
if(!fwrite_dstats(dsts, &stats, __FUNCTION__))
errormsg(WHERE, ERR_WRITE, "dsts.ini", i);
}
fclose_dstats(dsts);
fclose_cstats(csts);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment