Skip to content

Commit

Permalink
Fixed memory leak in evpmd
Browse files Browse the repository at this point in the history
  • Loading branch information
Pieter Cardoen committed Jan 30, 2018
1 parent a148c9e commit bd7744b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/include/private/ssl_compat.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class EvpMdCtx {
public:
EvpMdCtx() { EVP_MD_CTX_init(&ctx_); }

~EvpMdCtx() {}
~EvpMdCtx() { EVP_MD_CTX_cleanup(&ctx_); }

EVP_MD_CTX* get() { return &ctx_; }

Expand Down

0 comments on commit bd7744b

Please sign in to comment.