Browse Source

Plug leak in AES tests.

Jeroen van Rijn 1 năm trước cách đây
mục cha
commit
9d8d864400
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  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)