summaryrefslogtreecommitdiffstats
path: root/test/bad_dtls_test.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/bad_dtls_test.c')
-rw-r--r--test/bad_dtls_test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/bad_dtls_test.c b/test/bad_dtls_test.c
index 7b50ee0545..06dc480b79 100644
--- a/test/bad_dtls_test.c
+++ b/test/bad_dtls_test.c
@@ -504,7 +504,6 @@ static int test_bad_dtls(void)
if (!TEST_ptr(con)
|| !TEST_true(SSL_set_session(con, sess)))
goto end;
- SSL_SESSION_free(sess);
rbio = BIO_new(BIO_s_mem());
wbio = BIO_new(BIO_s_mem());
@@ -592,6 +591,7 @@ static int test_bad_dtls(void)
testresult = 1;
end:
+ SSL_SESSION_free(sess);
BIO_free(rbio);
BIO_free(wbio);
SSL_free(con);