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

Fix error path memory leak (unlikely, but not impossible)

CID 462234
parent 47fe4a60
No related branches found
No related tags found
No related merge requests found
......@@ -299,6 +299,7 @@ bool sbbs_t::netmail(const char *into, const char *title, int mode, smb_t* resmb
}
if(read(file,buf,length) != length) {
close(file);
free(buf);
errormsg(WHERE, ERR_READ, str, length);
return false;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment