tests: Fix memory leak.
authorJustus Winter <justus@g10code.com>
Fri, 25 Nov 2016 08:38:51 +0000 (09:38 +0100)
committerJustus Winter <justus@g10code.com>
Fri, 25 Nov 2016 08:38:51 +0000 (09:38 +0100)
* tests/basic.c (check_gost28147_cipher): Free cipher handles.

Fixes-commit: 4f5c26c73c66daf2e4aff966e43c22b2db7e0138
Signed-off-by: Justus Winter <justus@g10code.com>
tests/basic.c

index 7f7bce3..b6f4f4b 100644 (file)
@@ -4033,6 +4033,9 @@ check_gost28147_cipher (void)
             mismatch (tv[i].plaintext, tv[i].inlen,
                       out, tv[i].inlen);
           }
+
+        gcry_cipher_close (hde);
+        gcry_cipher_close (hdd);
     }
 
 #endif