mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Merge branch 'leak-rebase' of https://github.com/tux3/toxcore
This commit is contained in:
commit
5c87c7bf4a
|
@ -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