Don't free in cleanup routine
authorBenjamin Kaduk <bkaduk@akamai.com>
Tue, 28 Feb 2017 22:09:53 +0000 (16:09 -0600)
committerRich Salz <rsalz@openssl.org>
Wed, 1 Mar 2017 01:02:30 +0000 (20:02 -0500)
commit0adaabf6cd9ef104468edd353d721cd2d7afca5e
treebc2dddcead1102f10709eda404b783994df4e082
parent027211787a0388bae578f153e7b15b4eb30f352e
Don't free in cleanup routine

Cleanse instead, and free in the free routine.

Seems to have been introduced in commit
846ec07d904f9cc81d486db0db14fb84f61ff6e5 when EVP_CIPHER_CTX was made
opaque.

Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/2798)
(cherry picked from commit 5c6c4c5c333c8ac469e53521cf747ff527b8813a)
crypto/cmac/cmac.c