Address code review feedback

This commit is contained in:
ares 2020-11-27 09:49:02 -05:00
parent 55827c5e27
commit 934accc47e

View File

@ -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