noxxi / p5-io-socket-ssl

IO::Socket::SSL Perl Module
36 stars 60 forks source link

fix memory leak with %CREATED_IN_THIS_THREAD #55

Closed jwestfall69 closed 7 years ago

jwestfall69 commented 7 years ago

%CREATED_IN_THIS_THREAD is global and when connect_SSL()/accept_SSL() are called they create $CREATED_IN_THIS_THREAD{$ssl} = 1; however nothing was cleaning up this hash entry, causing it to grow indefinitely as new connections are made.

noxxi commented 7 years ago

Thanks for the patch. I've fixed the problem in aebd75c but slightly different from your patch.