From 727659673c21e23607bbe1ce7ed158651d642337 Mon Sep 17 00:00:00 2001 From: "Tux3 / Mlkj / !Lev.uXFMLA" Date: Thu, 19 Jun 2014 04:12:08 +0200 Subject: [PATCH] Fix exceptional file leak in other/fun/sign.c --- other/fun/sign.c | 1 + 1 file changed, 1 insertion(+) diff --git a/other/fun/sign.c b/other/fun/sign.c index eaea9d6a6..56a9d1e2c 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 }