1
0
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:
Sebastien Helleu
2012-12-25 17:00:58 +01:00
parent 306b209421
commit 302b0f2f65
+1
View File
@@ -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);