Merge branch 'leak-rebase' of https://github.com/tux3/toxcore

This commit is contained in:
irungentoo 2014-06-20 10:06:14 -04:00
commit 5c87c7bf4a
No known key found for this signature in database
GPG Key ID: 10349DC9BED89E98

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
}