[SOLVED] How to free std::os::raw::c_void


#1

I understand that libc has a free function that frees libc::c_void. It seems there are still some unsolved problems around c_void so I want to ask the following. Is there a way to free std::os::raw::c_void?


#2

libc::free(ptr as *mut libc::c_void)? Your question isn’t really clear.


#3

Oh that answers my question, thanks! I wasn’t aware it could be used like that.