mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-29 18:19:30 +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)
|
||||
memset(&p->addr, 0, sizeof(p->addr));
|
||||
}
|
||||
mysql_free_result(result);
|
||||
result = NULL;
|
||||
}
|
||||
ast_mutex_unlock(&mysqllock);
|
||||
}
|
||||
|
Reference in New Issue
Block a user