fix: file free dangling pointer

This commit is contained in:
2026-05-16 13:29:00 +02:00
parent ca3e523f93
commit 43ce38f2f4
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -123,7 +123,7 @@ void file_write(const char *path, const StringArray *lines) {
fclose(file_pointer);
}
void file_free(const File *file) {
void file_free(File *file) {
if (!file->error) {
free(file->content);
}