Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, libarchive.org for more info) to build successfully.

Commit 0c5c140e authored by Rob Swindell's avatar Rob Swindell 💬

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
......@@ -133,7 +133,7 @@ void sbbs_t::batchmenu()
);
totalsize += f.size;
totalcdt += f.cost;
smb_freemsgmem(&f);
smb_freefilemem(&f);
}
bprintf(text[DownloadQueueTotals]
,ultoac((ulong)totalcdt,tmp),ultoac((ulong)totalsize,str),cur_cps
......@@ -458,7 +458,7 @@ bool sbbs_t::create_batchup_lst()
if(!batch_file_get(&cfg, ini, filename, &f))
continue;
fprintf(fp, "%s%s\r\n", cfg.dir[f.dir]->path, filename);
smb_freemsgmem(&f);
smb_freefilemem(&f);
}
fclose(fp);
iniFreeStringList(ini);
......@@ -498,7 +498,7 @@ void sbbs_t::batch_upload()
continue;
if(uploadfile(&f))
batch_file_remove(&cfg, useron.number, XFER_BATCH_DOWNLOAD, filename);
smb_freemsgmem(&f);
smb_freefilemem(&f);
}
iniFreeStringList(filenames);
iniFreeStringList(ini);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment