Describe the bug Potential memory leak in cli_common.c line 59. The return value of SSL_CTX_NEW is not freed when returned will cause a memory leak.

Additional information Doc says "An SSLstructure is reference counted. Creating an SSL structure for the first time increments the reference count. Freeing it (using SSL_free) decrements it. When the reference count drops to zero, any memory or resources allocated to theSSLstructure are freed."

1662197505418

Comment From: oranagra

but that's a static variable, initialized only once, so AFAICT it doesn't leak, and that memory will be dismissed when the process exists. @yossigo anything i'm missing?

Comment From: enjoy-binbin

yes, that is a static variable and i see yossigo reacted with a thumbs up emoji so i am closing it