Building with compile-pentium-valgrind-max (without safemalloc) defines my_free() without flags,
so a typo on flags will go unnoticed; I put flags in this my_free() definition (as a no-op which will still make the compiler check correctness of the flags). Applied: this caught a typo in my_realloc.c. Kindly approved by Konstantin and Mats. include/my_sys.h: When we define my_free(PTR,FG) to be my_no_flags_free(PTR) we don't make the compiler check correctness of FG, which can hurt if another person build with a different definition of my_free; so I add FG in the expression. mysys/my_realloc.c: typo found by the change in my_sys.h :)
Showing
Please register or sign in to comment