From 82128826bb0a92779a9029645525a7dc280671be Mon Sep 17 00:00:00 2001 From: Paul Kehrer Date: Fri, 10 Jan 2014 12:27:14 -0600 Subject: don't leak a context in the test --- tests/hazmat/backends/test_openssl.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/hazmat/backends/test_openssl.py b/tests/hazmat/backends/test_openssl.py index 71250592..a212df4a 100644 --- a/tests/hazmat/backends/test_openssl.py +++ b/tests/hazmat/backends/test_openssl.py @@ -98,7 +98,9 @@ class TestOpenSSL(object): def test_ssl_ciphers_registered(self): meth = backend._lib.TLSv1_method() - assert backend._lib.SSL_CTX_new(meth) != backend._ffi.NULL + ctx = backend._lib.SSL_CTX_new(meth) + assert ctx != backend._ffi.NULL + backend._lib.SSL_CTX_free(ctx) def test_evp_ciphers_registered(self): cipher = backend._lib.EVP_get_cipherbyname("aes-256-cbc") -- cgit v1.2.3