Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions src/crypto/crypto_util.h
Original file line number Diff line number Diff line change
Expand Up @@ -550,9 +550,12 @@ struct EnginePointer {

inline void reset(ENGINE* engine_ = nullptr, bool finish_on_exit_ = false) {
if (engine != nullptr) {
if (finish_on_exit)
if (finish_on_exit) {
// this also does the equivalent of ENGINE_free
Comment thread
mhdawson marked this conversation as resolved.
Outdated
ENGINE_finish(engine);
Comment thread
mhdawson marked this conversation as resolved.
Outdated
ENGINE_free(engine);
} else {
ENGINE_free(engine);
Comment thread
mhdawson marked this conversation as resolved.
Outdated
}
}
engine = engine_;
finish_on_exit = finish_on_exit_;
Expand Down