Skip to content

Commit

Permalink
Fix memleak
Browse files Browse the repository at this point in the history
  • Loading branch information
romainthomas committed Nov 17, 2024
1 parent 4479894 commit e573911
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/hash_stream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,8 @@ hashstream& hashstream::flush() {
}

hashstream::~hashstream() {
mbedtls_md_free(cast(this->ctx_));
mbedtls_md_free(cast(ctx_));
delete reinterpret_cast<mbedtls_md_context_t*>(ctx_.release())
}


Expand Down

0 comments on commit e573911

Please sign in to comment.