pub unsafe extern "C" fn BMSfreeBufferMemory_call( buffer: *mut BMS_BUFMEM, ptr: *mut *mut c_void, filename: *const c_char, line: c_int, )
frees a buffer and sets pointer to NULL