[Asterisk-cvs] asterisk/channels chan_iax2.c,1.94,1.95

markster at lists.digium.com markster at lists.digium.com
Wed Feb 11 00:20:49 CST 2004


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

Modified Files:
	chan_iax2.c 
Log Message:
Free mysql results


Index: chan_iax2.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_iax2.c,v
retrieving revision 1.94
retrieving revision 1.95
diff -u -d -r1.94 -r1.95
--- chan_iax2.c	11 Feb 2004 03:54:28 -0000	1.94
+++ chan_iax2.c	11 Feb 2004 06:29:35 -0000	1.95
@@ -1595,6 +1595,8 @@
 				if ((nowtime - regseconds) > IAX_DEFAULT_REG_EXPIRE) 
 					memset(&p->addr, 0, sizeof(p->addr));
 			}
+			mysql_free_result(result);
+			result = NULL;
 		}
 		ast_mutex_unlock(&mysqllock);
 	}
@@ -1650,6 +1652,8 @@
 					}
 				}
 			}
+			mysql_free_result(result);
+			result = NULL;
 		}
 		ast_mutex_unlock(&mysqllock);
 	}




More information about the svn-commits mailing list