fixed memory leaks and almost all undefined behaviour

This commit is contained in:
Alex Murkoff committed 2024-04-13 02:24:14 +07:00
1 parent 592de19843
commit 1d5e9705db
10 files changed
+19 -10

No files matched your search

+1
View File
@@ -50,6 +50,7 @@ static buffer_s read_file(const char *path)
fclose(f);
buffer_s const b = { ptr, size };
free(ptr);
return b;
}