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
?
libc::free(ptr as *mut libc::c_void)
? Your question isn't really clear.
Oh that answers my question, thanks! I wasn't aware it could be used like that.