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

Fix FILE (stream) pointer leak in error condition

Fixes CID 451020
parent 1219ad94
No related branches found
No related tags found
No related merge requests found
......@@ -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