Commit 2e60ea76 authored by Richard Levitte's avatar Richard Levitte
Browse files

Fix a memory leak in SSL.

PR: 477
parent 4e78074b
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -2047,6 +2047,7 @@ SSL *SSL_dup(SSL *s)
		 * they should not both point to the same object,
		 * and thus we can't use SSL_copy_session_id. */

		ret->method->ssl_free(ret);
		ret->method = s->method;
		ret->method->ssl_new(ret);