[Asterisk-cvs] asterisk/channels chan_iax2.c,1.91.2.3,1.91.2.4

markster at lists.digium.com markster at lists.digium.com
Wed Feb 11 00:21:46 CST 2004


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

Modified Files:
      Tag: v1-0_stable
	chan_iax2.c 
Log Message:
Free mysql results memory (bug #1011)


Index: chan_iax2.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_iax2.c,v
retrieving revision 1.91.2.3
retrieving revision 1.91.2.4
diff -u -d -r1.91.2.3 -r1.91.2.4
--- chan_iax2.c	11 Feb 2004 03:54:20 -0000	1.91.2.3
+++ chan_iax2.c	11 Feb 2004 06:30:33 -0000	1.91.2.4
@@ -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