[Asterisk-cvs] asterisk/channels chan_sip.c,1.294,1.295

markster at lists.digium.com markster at lists.digium.com
Mon Feb 9 00:01:01 CST 2004


Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/tmp/cvs-serv6459/channels

Modified Files:
	chan_sip.c 
Log Message:
Fix memory leak with SIP friends (bug #1010)


Index: chan_sip.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_sip.c,v
retrieving revision 1.294
retrieving revision 1.295
diff -u -d -r1.294 -r1.295
--- chan_sip.c	9 Feb 2004 05:38:17 -0000	1.294
+++ chan_sip.c	9 Feb 2004 06:09:45 -0000	1.295
@@ -761,6 +761,8 @@
 				if ((nowtime - regseconds) > default_expiry) 
 					memset(&p->addr, 0, sizeof(p->addr));
 			}
+			mysql_free_result(result);
+			result = NULL;
 		}
 		ast_mutex_unlock(&mysqllock);
 	}




More information about the svn-commits mailing list