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