mirror of
https://github.com/weechat/weechat.git
synced 2026-06-12 14:14:48 +02:00
script: add missing close of file in case of error when computing MD5 checksum of a file
This commit is contained in:
@@ -762,6 +762,7 @@ script_repo_md5sum_file (const char *filename)
|
||||
if ((int)fread (data, 1, st.st_size, file) < st.st_size)
|
||||
{
|
||||
free (data);
|
||||
fclose (file);
|
||||
return NULL;
|
||||
}
|
||||
fclose (file);
|
||||
|
||||
Reference in New Issue
Block a user