mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Fix exceptional file leak in other/fun/sign.c
This commit is contained in:
parent
db724df189
commit
727659673c
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user