diff --git a/ssl/test/bssl_shim.cc b/ssl/test/bssl_shim.cc index 74674a49..dde25b44 100644 --- a/ssl/test/bssl_shim.cc +++ b/ssl/test/bssl_shim.cc @@ -747,6 +747,8 @@ static ScopedSSL_CTX SetupCtx(const TestConfig *config) { !BN_set_word(dh->g, 2)) { return nullptr; } + BN_free(dh->q); + dh->q = NULL; dh->priv_length = 0; }