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

Fix CID 33725: Use after close

parent 5a2a73ae
No related branches found
No related tags found
1 merge request!455Update branch with changes from master
......@@ -224,9 +224,9 @@ void sbbs_t::multinodechat(int channel)
break;
}
if((gurubuf=(char *)malloc((size_t)filelength(file)+1))==NULL) {
close(file);
errormsg(WHERE,ERR_ALLOC,str
,(size_t)filelength(file)+1);
close(file);
break;
}
if(read(file,gurubuf,(size_t)filelength(file)) < 1)
......
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