Function hyperscan_sys::hs_free_database
source · [−]pub unsafe extern "C" fn hs_free_database(
db: *mut hs_database_t
) -> hs_error_t
Expand description
Free a compiled pattern database.
The free callback set by @ref hs_set_database_allocator() (or @ref hs_set_allocator()) will be used by this function.
@param db A compiled pattern database. NULL may also be safely provided, in which case the function does nothing.
@return @ref HS_SUCCESS on success, other values on failure.