Skip to content

Commit

Permalink
[CYB-561] fix rsa memory leak
Browse files Browse the repository at this point in the history
  • Loading branch information
algys committed Jul 17, 2020
1 parent 20f2b21 commit ccbe918
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/chain/include/eosio/chain/rsa.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ namespace fc {

~rsa_public_key() {
if (rsa) {
delete rsa;
RSA_free(rsa);
}
}

Expand Down

0 comments on commit ccbe918

Please sign in to comment.