[][src]Function hyperscan_sys::hs_free_scratch

pub unsafe extern "C" fn hs_free_scratch(
    scratch: *mut hs_scratch_t
) -> hs_error_t

Free a scratch block previously allocated by @ref hs_alloc_scratch() or @ref hs_clone_scratch().

The free callback set by @ref hs_set_scratch_allocator() or @ref hs_set_allocator() will be used by this function.

@param scratch The scratch block to be freed. NULL may also be safely provided.

@return @ref HS_SUCCESS on success, other values on failure.