fixed memory leaks and almost all undefined behaviour

This commit is contained in:
Alex Murkoff
2024-04-13 02:24:14 +07:00
parent 592de19843
commit 1d5e9705db
10 changed files with 19 additions and 10 deletions
+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;
}