Free EC key in test session destructor

[ Merged from http://go/wvgerrit/148030 ]

Bug: 224375138
Test: GtsMediaDrmTests
Change-Id: Ic1d42756cb1a03fa52d90c5fb0bd496e87a43c65
This commit is contained in:
Rahul Frias
2022-03-21 14:37:58 -07:00
parent cff6103321
commit a6a99c416f

View File

@@ -1407,6 +1407,7 @@ Session::Session()
Session::~Session() {
if (!forced_session_id_ && open_) close();
if (public_rsa_) RSA_free(public_rsa_);
if (public_ec_) EC_KEY_free(public_ec_);
}
void Session::open() {