osip-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[osip-dev] WSACleanup missing


From: FEICHTER Christoph
Subject: [osip-dev] WSACleanup missing
Date: Mon, 22 Dec 2014 11:25:15 +0000

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);
#endif
  eXtl_tls.tl_free (excontext);
#endif
 
  memset (excontext, 0, sizeof (eXosip_t));
  excontext->j_stop_ua = -1;
 
#ifdef WIN32
   WSACleanup();
#endif
 
  return;
}
 
br,
Christoph
 
 

reply via email to

[Prev in Thread] Current Thread [Next in Thread]