--- asterisk/channels/chan_iax2.c 2004-02-07 14:30:31.000000000 +0100 +++ myasterisk/channels/chan_iax2.c 2004-02-07 17:53:03.383560344 +0100 @@ -1595,6 +1595,8 @@ 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 @@ } } } + mysql_free_result(result); + result = NULL; } ast_mutex_unlock(&mysqllock); }