mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-01 03:34:39 +02:00
fix dh_test drbg memory leak
This commit is contained in:
@@ -3954,6 +3954,10 @@ int dh_test(void)
|
|||||||
FreeDhKey(&key);
|
FreeDhKey(&key);
|
||||||
FreeDhKey(&key2);
|
FreeDhKey(&key2);
|
||||||
|
|
||||||
|
#if defined(HAVE_HASHDRBG) || defined(NO_RC4)
|
||||||
|
FreeRng(&rng);
|
||||||
|
#endif
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user