mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-30 18:40:46 +00:00
Fix memory leak with SIP friends (bug #1010)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2145 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -761,6 +761,8 @@ static struct sip_peer *mysql_peer(char *peer, struct sockaddr_in *sin)
|
|||||||
if ((nowtime - regseconds) > default_expiry)
|
if ((nowtime - regseconds) > default_expiry)
|
||||||
memset(&p->addr, 0, sizeof(p->addr));
|
memset(&p->addr, 0, sizeof(p->addr));
|
||||||
}
|
}
|
||||||
|
mysql_free_result(result);
|
||||||
|
result = NULL;
|
||||||
}
|
}
|
||||||
ast_mutex_unlock(&mysqllock);
|
ast_mutex_unlock(&mysqllock);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user