Fix exceptional file leak in other/fun/sign.c

This commit is contained in:
Tux3 / Mlkj / !Lev.uXFMLA 2014-06-19 04:12:08 +02:00
parent db724df189
commit 727659673c

View File

@ -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
}