Free mysql results
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2156 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
parent
e83acf8658
commit
98391c1324
|
@ -1595,6 +1595,8 @@ static struct iax2_peer *mysql_peer(char *peer)
|
|||
if ((nowtime - regseconds) > IAX_DEFAULT_REG_EXPIRE)
|
||||
memset(&p->addr, 0, sizeof(p->addr));
|
||||
}
|
||||
mysql_free_result(result);
|
||||
result = NULL;
|
||||
}
|
||||
ast_mutex_unlock(&mysqllock);
|
||||
}
|
||||
|
@ -1650,6 +1652,8 @@ static struct iax2_user *mysql_user(char *user)
|
|||
}
|
||||
}
|
||||
}
|
||||
mysql_free_result(result);
|
||||
result = NULL;
|
||||
}
|
||||
ast_mutex_unlock(&mysqllock);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue