pub unsafe fn secp256k1_context_destroy(ctx: NonNull<Context>)
Available on crate feature alloc and non-rust_secp_no_symbol_renaming only.
Expand description

A reimplementation of the C function secp256k1_context_destroy in rust.

This function destroys and deallcates the context created by secp256k1_context_create.

The pointer shouldn’t be used after passing to this function, consider it as passing it to free().

Safety

ctx must be a valid pointer to a block of memory created using secp256k1_context_create.