|
From: | Aymeric Moizard |
Subject: | Re: [osip-dev] WSACleanup missing |
Date: | Tue, 6 Jan 2015 15:53:18 +0100 |
hi aymeric,one more improvement for eXosip:since eXosip calls WSAStartup, but never WSACleanup, this causes a memory/handle leak.I would suggest to add the following in eXosip_quit:…eXtl_udp.tl_free (excontext);eXtl_tcp.tl_free (excontext);#ifdef HAVE_OPENSSL_SSL_H#if !(OPENSSL_VERSION_NUMBER < 0x00908000L)eXtl_dtls.tl_free (excontext);#endifeXtl_tls.tl_free (excontext);#endifmemset (excontext, 0, sizeof (eXosip_t));excontext->j_stop_ua = -1;#ifdef WIN32WSACleanup();#endifreturn;}br,Christoph
_______________________________________________
osip-dev mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/osip-dev
[Prev in Thread] | Current Thread | [Next in Thread] |