[Asterisk-cvs] asterisk/apps app_festival.c, 1.25, 1.26 app_alarmreceiver.c, 1.3, 1.4

citats at lists.digium.com citats at lists.digium.com
Mon Sep 27 01:03:45 CDT 2004


Update of /usr/cvsroot/asterisk/apps
In directory mongoose.digium.com:/home/citats/cvs/asterisk/apps

Modified Files:
	app_festival.c app_alarmreceiver.c 
Log Message:
Fix 2 memory leaks

Index: app_festival.c
===================================================================
RCS file: /usr/cvsroot/asterisk/apps/app_festival.c,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -d -r1.25 -r1.26
--- app_festival.c	31 Aug 2004 14:59:57 -0000	1.25
+++ app_festival.c	27 Sep 2004 05:06:22 -0000	1.26
@@ -305,6 +305,7 @@
 	if (!(festivalcommand = ast_variable_retrieve(cfg, "general", "festivalcommand"))) {
 		festivalcommand = "(tts_textasterisk \"%s\" 'file)(quit)\n";
 	}
+	ast_destroy(cfg);
 	if (!vdata || ast_strlen_zero(vdata)) {
 		ast_log(LOG_WARNING, "festival requires an argument (text)\n");
 		return -1;

Index: app_alarmreceiver.c
===================================================================
RCS file: /usr/cvsroot/asterisk/apps/app_alarmreceiver.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- app_alarmreceiver.c	14 Jul 2004 07:22:30 -0000	1.3
+++ app_alarmreceiver.c	27 Sep 2004 05:06:22 -0000	1.4
@@ -817,7 +817,7 @@
 			strncpy(db_family, p, sizeof(db_family) - 1);
 			db_family[sizeof(db_family) - 1] = '\0';
 		}
-
+		ast_destroy(cfg);
 	}
 	return 0;
 




More information about the svn-commits mailing list