Explorar o código

Plug leak in AES tests.

Jeroen van Rijn hai 1 ano
pai
achega
9d8d864400
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      tests/core/crypto/test_core_crypto_aes.odin

+ 1 - 0
tests/core/crypto/test_core_crypto_aes.odin

@@ -15,6 +15,7 @@ test_aes :: proc(t: ^testing.T) {
 	log.info("Testing AES")
 
 	impls := make([dynamic]aes.Implementation, 0, 2)
+	defer delete(impls)
 	append(&impls, aes.Implementation.Portable)
 	if aes.is_hardware_accelerated() {
 		append(&impls, aes.Implementation.Hardware)