From d7b50874f66a950b98f39ae4f88aa586031a7f1d Mon Sep 17 00:00:00 2001 From: kaleb-himes Date: Wed, 10 Jul 2019 13:28:00 -0600 Subject: [PATCH] Fix leak in dh_test --- wolfcrypt/test/test.c | 1 + 1 file changed, 1 insertion(+) diff --git a/wolfcrypt/test/test.c b/wolfcrypt/test/test.c index 0a3a6d152..4058986f5 100644 --- a/wolfcrypt/test/test.c +++ b/wolfcrypt/test/test.c @@ -13061,6 +13061,7 @@ int dh_test(void) /* Test Check Key */ ret = wc_DhSetCheckKey(&key, dh_p, sizeof(dh_p), dh_g, sizeof(dh_g), NULL, 0, 0, &rng); + keyInit = 1; /* DhSetCheckKey also initializes the key, free it */ } #endif