Fix leak in dh_test

This commit is contained in:
kaleb-himes
2019-07-10 13:28:00 -06:00
parent 92bd585f25
commit d7b50874f6

View File

@ -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