mirror of
https://github.com/TokTok/c-toxcore
synced 2026-06-06 13:22:46 +00:00
Merge branch 'leak-rebase' of https://github.com/tux3/toxcore
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user