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

Fix FILE (stream) pointer leak in error condition

Fixes CID 451020
parent d93e48b0
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #3966 passed
......@@ -126,6 +126,7 @@ bool sbbs_t::pack_qwk(char *packet, uint *msgcnt, bool prepack)
now=time(NULL);
if(localtime_r(&now,&tm)==NULL) {
fclose(stream);
errormsg(WHERE, ERR_CHK, "time", (uint)now);
return(false);
}
......
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