diff --git a/other/fun/sign.c b/other/fun/sign.c index eaea9d6a..56a9d1e2 100644 --- a/other/fun/sign.c +++ b/other/fun/sign.c @@ -36,6 +36,7 @@ int load_file(char *filename, char **result) if (size != fread(*result, sizeof(char), size, f)) { free(*result); + fclose(f); return -2; // -2 means file reading fail }