File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -160,7 +160,7 @@ secp256k1_context_t* secp256k1_context_clone(
160160 */
161161void secp256k1_context_destroy (
162162 secp256k1_context_t * ctx
163- ) SECP256K1_ARG_NONNULL ( 1 ) ;
163+ );
164164
165165/** Set a callback function to be called when an illegal argument is passed to
166166 * an API call. It will only trigger for violations that are mentioned
Original file line number Diff line number Diff line change @@ -85,6 +85,9 @@ secp256k1_context_t* secp256k1_context_clone(const secp256k1_context_t* ctx) {
8585}
8686
8787void secp256k1_context_destroy (secp256k1_context_t * ctx ) {
88+ if (!ctx )
89+ return ;
90+
8891 secp256k1_ecmult_context_clear (& ctx -> ecmult_ctx );
8992 secp256k1_ecmult_gen_context_clear (& ctx -> ecmult_gen_ctx );
9093
You can’t perform that action at this time.
0 commit comments