Skip to content

Commit

Permalink
fix: Deinit secp context undefined behaviour (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
pmerkleplant authored Sep 3, 2024
1 parent 869d587 commit a33af70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/secp256k1.zig
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ pub const Secp256k1 = struct {
ctx: ?*secp256k1.struct_secp256k1_context_struct,

pub fn deinit(self: @This()) void {
secp256k1.secp256k1_context_preallocated_destroy(self.ctx);
secp256k1.secp256k1_context_destroy(self.ctx);
}

/// Creates a schnorr signature using the given auxiliary random data.
Expand Down

0 comments on commit a33af70

Please sign in to comment.