mirror of
https://github.com/DaveGamble/cJSON.git
synced 2023-08-10 21:13:26 +03:00
Address code review feedback
This commit is contained in:
parent
55827c5e27
commit
934accc47e
2
cJSON.c
2
cJSON.c
@ -3097,7 +3097,7 @@ CJSON_PUBLIC(int) cJSON_loadJSONfile(const char *filename, cJSON **item, char *e
|
||||
{
|
||||
sprintf(errorMessage, "Memory allocation error while reading '%s.420'.", filename);
|
||||
}
|
||||
free(fptr);
|
||||
fclose(fptr);
|
||||
return -1;
|
||||
}
|
||||
/* Read in the file until there's nothing left to read
|
||||
|
Loading…
Reference in New Issue
Block a user