[Asterisk-cvs] asterisk/channels chan_sip.c,1.510.2.61,1.510.2.62

russell at lists.digium.com russell at lists.digium.com
Mon May 16 13:49:38 CDT 2005


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




More information about the svn-commits mailing list