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

Close the open user.dat upon (unlikely/impossible) malloc error

parent 792237df
No related branches found
No related tags found
No related merge requests found
......@@ -76,6 +76,7 @@ void sbbs_t::userlist(long mode)
}
if(sort) {
if((line[j]=(char *)malloc(128))==0) {
closeuserdat(userfile);
errormsg(WHERE,ERR_ALLOC,nulstr,83);
for(i=0;i<j;i++)
free(line[i]);
......
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