Skip to main content

hurray_item_destroy

Function hurray_item_destroy 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn hurray_item_destroy( handle: *mut *mut HurrayItem, ) -> HurrayStatus
Expand description

Destroys an item, every tensor and name it owns, then writes null through handle.

One call for a whole composite subtree: the nodes’ tensor pointers were borrowed and are released here, so a caller that destroyed them individually would double-free.

§Safety