Blame SOURCES/unbound-1.13.1-rh1977400.patch

5ddc80
diff --git a/util/net_help.c b/util/net_help.c
5ddc80
index 3b5527a..42a7666 100644
5ddc80
--- a/util/net_help.c
5ddc80
+++ b/util/net_help.c
5ddc80
@@ -1172,6 +1172,7 @@ void* connect_sslctx_create(char* key, char* pem, char* verifypem, int wincert)
5ddc80
 	if((SSL_CTX_set_options(ctx, SSL_OP_NO_RENEGOTIATION) &
5ddc80
 		SSL_OP_NO_RENEGOTIATION) != SSL_OP_NO_RENEGOTIATION) {
5ddc80
 		log_crypto_err("could not set SSL_OP_NO_RENEGOTIATION");
5ddc80
+		SSL_CTX_free(ctx);
5ddc80
 		return 0;
5ddc80
 	}
5ddc80
 #endif