[Asterisk-cvs] asterisk/apps app_voicemail.c,1.242,1.243

russell russell
Mon Aug 29 12:07:32 CDT 2005


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

Modified Files:
	app_voicemail.c 
Log Message:
fix mem leak from not destrying config (issue #5048)


Index: app_voicemail.c
===================================================================
RCS file: /usr/cvsroot/asterisk/apps/app_voicemail.c,v
retrieving revision 1.242
retrieving revision 1.243
diff -u -d -r1.242 -r1.243
--- app_voicemail.c	25 Aug 2005 03:15:18 -0000	1.242
+++ app_voicemail.c	29 Aug 2005 16:08:53 -0000	1.243
@@ -1187,7 +1187,7 @@
 			snprintf(sql, sizeof(sql), "INSERT INTO %s (dir,msgnum,recording,context,macrocontext,callerid,origtime,duration,mailboxuser,mailboxcontext) VALUES (?,?,?,?,?,?,?,?,?,?)",odbc_table);
 #else
  			snprintf(sql, sizeof(sql), "INSERT INTO %s (dir,msgnum,recording,context,macrocontext,callerid,origtime,duration) VALUES (?,?,?,?,?,?,?,?)",odbc_table);
-#endif		 
+#endif
 		res = SQLPrepare(stmt, sql, SQL_NTS);
 		if ((res != SQL_SUCCESS) && (res != SQL_SUCCESS_WITH_INFO)) {
 			ast_log(LOG_WARNING, "SQL Prepare failed![%s]\n", sql);
@@ -6134,6 +6134,7 @@
 			}
 		}
 		ast_mutex_unlock(&vmlock);
+		ast_config_destroy(cfg);
 		return 0;
 	} else {
 		ast_mutex_unlock(&vmlock);




More information about the svn-commits mailing list