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

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

parent e731ac18
Branches
Tags
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #3073 passed
......@@ -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.
Please register or to comment