Skip to content

Commit

Permalink
Update stage_senders.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
taokayan authored Jul 18, 2024
1 parent ee16225 commit 7b72f8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion silkworm/node/stagedsync/stages/stage_senders.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ Stage::Result Senders::parallel_recover(db::RWTxn& txn) {
// secp256k1_context is thread safe and can be reused, but the creation is expensive (~10ms)
static secp256k1_context* context = secp256k1_context_create(SILKWORM_SECP256K1_CONTEXT_FLAGS);
// release only when the process exits
static auto _ = gsl::finally([&]() { if (context) std::free(context); });
static auto _ = gsl::finally([&]() { if (context) secp256k1_context_destroy(context); });

Stage::Result ret{Stage::Result::kSuccess};
try {
Expand Down

0 comments on commit 7b72f8a

Please sign in to comment.