libra_error_free_string

Function libra_error_free_string 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn libra_error_free_string( out: *mut *mut c_char, ) -> i32
Expand description

Frees an error string previously allocated by libra_error_write.

After freeing, the pointer will be set to null.

ยงSafety

  • If libra_error_write is not null, it must point to a string previously returned by libra_error_write. Attempting to free anything else, including strings or objects from other librashader functions, is immediate Undefined Behaviour.