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
@@ -1273,7 +1273,6 @@ static int createBuffers(buffers_t* buff, const char* const * const fileNamesTab
f = fopen(fileNamesTable[n], "rb");
if (f==NULL) {
DISPLAY("impossible to open file %s\n", fileNamesTable[n]);
fclose(f);
ret = 10;
goto _cleanUp;
}