Skip to content

Commit f4e8e6b

Browse files
committed
FIX: missing free call for ARIA cipher context
1 parent ca4ddbd commit f4e8e6b

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/core/p-crypt.c

+12
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,18 @@
173173
#endif
174174

175175

176+
#ifdef MBEDTLS_ARIA_C
177+
case SYM_ARIA_128_ECB:
178+
case SYM_ARIA_192_ECB:
179+
case SYM_ARIA_256_ECB:
180+
case SYM_ARIA_128_CBC:
181+
case SYM_ARIA_192_CBC:
182+
case SYM_ARIA_256_CBC:
183+
mbedtls_aria_free((mbedtls_aria_context *)ctx->cipher_ctx);
184+
break;
185+
#endif
186+
187+
176188
#ifdef MBEDTLS_CHACHA20_C
177189
case SYM_CHACHA20:
178190
mbedtls_chacha20_free((mbedtls_chacha20_context *)ctx->cipher_ctx);

0 commit comments

Comments
 (0)