fix: project files free
This commit is contained in:
+1
-1
@@ -131,7 +131,7 @@ void file_write(const char *path, const StringArray *lines) {
|
||||
}
|
||||
|
||||
void file_free(File *file) {
|
||||
if (!file->error) {
|
||||
if (!file->error && file->content != NULL) {
|
||||
free(file->content);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user