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:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user