pub unsafe extern "C" fn BMSfreeMemoryNull_call( ptr: *mut *mut c_void, filename: *const c_char, line: c_int, )
frees an allocated memory element if pointer is not NULL and sets pointer to NULL