Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/tmp/cvs-serv25389/channels
Modified Files:
Tag: v1-0
chan_sip.c
Log Message:
fix mem leak with MYSQL_USERS (bug #4287)
Index: chan_sip.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_sip.c,v
retrieving revision 1.510.2.61
retrieving revision 1.510.2.62
diff -u -d -r1.510.2.61 -r1.510.2.62
--- chan_sip.c 15 May 2005 15:55:30 -0000 1.510.2.61
+++ chan_sip.c 16 May 2005 17:54:55 -0000 1.510.2.62
@@ -1643,6 +1643,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 && u->temponly)
+ free(u);
+#endif
return 0;
}
_______________________________________________
Asterisk-Cvs mailing list
[email protected]
http://lists.digium.com/mailman/listinfo/asterisk-cvs