fix mem leak with MYSQL_USERS (bug #4287)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/v1-0@5703 65c4cc65-6c06-0410-ace0-fbb531ad65f3
1.0
Russell Bryant 20 years ago
parent cda604fabe
commit f717cd2719

@ -1643,6 +1643,10 @@ static int update_user_counter(struct sip_pvt *fup, int event)
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 && u->temponly)
free(u);
#endif
return 0;
}

Loading…
Cancel
Save