commit | c64652932d8e17ccf7e54c0c76c1b38a86841732 | [log] [tgz] |
---|---|---|
author | Narayan Kamath <narayan@google.com> | Wed Dec 10 14:58:44 2014 +0000 |
committer | Narayan Kamath <narayan@google.com> | Wed Dec 10 17:05:32 2014 +0000 |
tree | d79f127ab3ce585adce461e6d97695754322bb07 | |
parent | 058faf1e3a8978cca7c9898ccd692fa5b738a180 [diff] |
Call EVP_CIPHER_CTX_free instead of EVP_CIPHER_CTX_cleanup. The latter doesn't OpenSSL_free memory allocated by EVP_CIPHER_CTX_new. It's worth noting that EVP_CIPHER_CTX_free doesn't check the return value of EVP_CIPHER_CTX_cleanup so we can't throw if cleanup failed, but we were only ever calling this method from a finalizer anyway. bug: 18617384 Change-Id: Ida65e14ffbed41f56a59e2f5fe77289cac0f5947