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

Call smb_freefilemem() instead of smb_msgmem() for files

Not that it really matters, but perhaps it'll matter in the future. And the code reads better.
parent a2110bfc
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
...@@ -133,7 +133,7 @@ void sbbs_t::batchmenu() ...@@ -133,7 +133,7 @@ void sbbs_t::batchmenu()
); );
totalsize += f.size; totalsize += f.size;
totalcdt += f.cost; totalcdt += f.cost;
smb_freemsgmem(&f); smb_freefilemem(&f);
} }
bprintf(text[DownloadQueueTotals] bprintf(text[DownloadQueueTotals]
,ultoac((ulong)totalcdt,tmp),ultoac((ulong)totalsize,str),cur_cps ,ultoac((ulong)totalcdt,tmp),ultoac((ulong)totalsize,str),cur_cps
...@@ -458,7 +458,7 @@ bool sbbs_t::create_batchup_lst() ...@@ -458,7 +458,7 @@ bool sbbs_t::create_batchup_lst()
if(!batch_file_get(&cfg, ini, filename, &f)) if(!batch_file_get(&cfg, ini, filename, &f))
continue; continue;
fprintf(fp, "%s%s\r\n", cfg.dir[f.dir]->path, filename); fprintf(fp, "%s%s\r\n", cfg.dir[f.dir]->path, filename);
smb_freemsgmem(&f); smb_freefilemem(&f);
} }
fclose(fp); fclose(fp);
iniFreeStringList(ini); iniFreeStringList(ini);
...@@ -498,7 +498,7 @@ void sbbs_t::batch_upload() ...@@ -498,7 +498,7 @@ void sbbs_t::batch_upload()
continue; continue;
if(uploadfile(&f)) if(uploadfile(&f))
batch_file_remove(&cfg, useron.number, XFER_BATCH_DOWNLOAD, filename); batch_file_remove(&cfg, useron.number, XFER_BATCH_DOWNLOAD, filename);
smb_freemsgmem(&f); smb_freefilemem(&f);
} }
iniFreeStringList(filenames); iniFreeStringList(filenames);
iniFreeStringList(ini); iniFreeStringList(ini);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment