diff options
-rw-r--r-- | src/plugins/script/script-repo.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/script/script-repo.c b/src/plugins/script/script-repo.c index d7f9e280f..c8aba6ae9 100644 --- a/src/plugins/script/script-repo.c +++ b/src/plugins/script/script-repo.c @@ -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); |