We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6fbd327 commit 67939b1Copy full SHA for 67939b1
1 file changed
src/wp_gmac.c
@@ -93,10 +93,11 @@ static wp_GmacCtx* wp_gmac_new(WOLFPROV_CTX* provCtx)
93
static void wp_gmac_free(wp_GmacCtx* macCtx)
94
{
95
if (macCtx != NULL) {
96
+ wc_AesFree(&macCtx->gmac.aes);
97
OPENSSL_cleanse(macCtx->key, macCtx->keyLen);
98
OPENSSL_cleanse(macCtx->iv, macCtx->ivLen);
99
OPENSSL_clear_free(macCtx->data, macCtx->dataLen);
- OPENSSL_free(macCtx);
100
+ OPENSSL_clear_free(macCtx, sizeof(*macCtx));
101
}
102
103
0 commit comments