mirror of
https://github.com/TokTok/c-toxcore
synced 2026-10-22 11:12:24 +00:00
Merge branch 'leak-rebase' of https://github.com/tux3/toxcore
This commit is contained in:
1 file changed
+1
@@ -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