pub unsafe extern "C" fn ch_free_database(
    db: *mut ch_database_t
) -> ch_error_t
Expand description

Free a compiled pattern database.

The free callback set by @ref ch_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 CH_SUCCESS on success, other values on failure.