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

Close stream on error.

Fixes CID 33498
parent b1ad5f2a
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
...@@ -460,6 +460,7 @@ void synclist(char *inpath, int dirnum) ...@@ -460,6 +460,7 @@ void synclist(char *inpath, int dirnum)
int result = smb_open_dir(&scfg, &smb, dirnum); int result = smb_open_dir(&scfg, &smb, dirnum);
if(result != SMB_SUCCESS) { if(result != SMB_SUCCESS) {
fprintf(stderr, "!Error %d (%s) opening %s\n", result, smb.last_error, smb.file); fprintf(stderr, "!Error %d (%s) opening %s\n", result, smb.last_error, smb.file);
fclose(stream);
return; return;
} }
size_t file_count; size_t file_count;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment