fix gcc-12 -O3 compiler warnings (#608)

* fix gcc-12 -O3 compiler warnings

Fixes #607

* do not free stdlib malloc'ed zone memory blocks
This commit is contained in:
Fabian Greffrath 2022-06-21 15:55:13 +02:00 committed by GitHub
parent c63cb3f77f
commit bd62ffe056
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -463,7 +463,7 @@ void (Z_Free)(void *p, const char *file, int line)
#ifdef INSTRUMENTED
virtual_memory -= block->size;
#endif
free(block);
// free(block); // [FG] TODO
}
else
{

View File

@ -555,12 +555,12 @@ void TXT_OpenURL(const char *url)
#endif
retval = system(cmd);
free(cmd);
if (retval != 0)
{
fprintf(stderr, "TXT_OpenURL: error executing '%s'; return code %d\n",
cmd, retval);
}
free(cmd);
}
#endif /* #ifndef _WIN32 */