Compiling c with -fomit-frame-pointer -mrtd creates segfault on free function pointer
问题 This c code crash with a segmentation fault if I compile with GCC using -fomit-frame-pointer and -mrtd. Is my code wrong in some way? Other function pointers works as expected, but not when its the free-function that is being passed? I get a warning when compiling, but I dont understand why or what I should do to fix. (I usually dont code in c, this error comes from a 3d part library that I use) I need rtd/stdcall because Im on windows and need to call this library from python with ctypes,