Index: channels/chan_sip.c =================================================================== RCS file: /var/lib/cvs/asterisk/channels/chan_sip.c,v retrieving revision 1.2 diff -u -r1.2 chan_sip.c --- channels/chan_sip.c 7 Mar 2005 10:48:13 -0000 1.2 +++ channels/chan_sip.c 16 May 2005 14:26:15 -0000 @@ -1763,6 +1763,10 @@ ast_log(LOG_ERROR, "update_user_counter(%s,%d) called with no event!\n",u->name,event); } ast_mutex_unlock(&userl.lock); +#ifdef MYSQL_USERS + if (u) + free(u); +#endif return 0; }