Free mysql results

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2156 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Mark Spencer 2004-02-11 06:29:35 +00:00
parent e83acf8658
commit 98391c1324
1 changed files with 4 additions and 0 deletions

View File

@ -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);
}