https://origsvn.digium.com/svn/asterisk/trunk
........
r225650 | dvossel | 2009-10-23 09:41:50 -0500 (Fri, 23 Oct 2009) | 3 lines
Fixes an iterator memory leak and uninitialized memory
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@225652
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
(th->tcptls_session->client ? "Client" : "Server"));
ao2_t_ref(th, -1, "decrement ref from iterator");
}
+ ao2_iterator_destroy(&i);
return CLI_SUCCESS;
#undef FORMAT
#undef FORMAT2
{
struct sip_socket *s = &p->socket;
static const char name[] = "SIP socket";
- struct sip_threadinfo *th;
+ struct sip_threadinfo *th = NULL;
struct ast_tcptls_session_instance *tcptls_session;
struct ast_tcptls_session_args tmp_ca = {
.name = name,