I remember that it wasn't unusual on Windows to define malloc, calloc,
strdup, and free macros to redirect those calls to custom wrappers. That
would eliminate the need to have non-standard names like MALLOC.
There is also the pipe_reference debug code. Is anybody using that?
Marek
On Sun., Dec.
Hi,
Valgrind should be able to report mismatching alloc & free calls, and I
think one can also annotate which functions are alloc & free ones.
AFAIK Valgrind does not work on Windows, but you could Valgrind Windows
Mesa version on Linux using Wine.
- Eero
On 26.12.2021 12.37, Jose