[asterisk-commits] file: trunk r184673 - /trunk/res/res_agi.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Mar 27 10:46:52 CDT 2009


Author: file
Date: Fri Mar 27 10:46:46 2009
New Revision: 184673

URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=184673
Log:
Fix speech structure leak in the AGI speech recognition integration.

The AGI dialplan applications did not destroy the speech structure automatically
if it was not destroyed by the running AGI script. They will now do this.

(issue LUMENVOX-15) 

Modified:
    trunk/res/res_agi.c

Modified: trunk/res/res_agi.c
URL: http://svn.digium.com/svn-view/asterisk/trunk/res/res_agi.c?view=diff&rev=184673&r1=184672&r2=184673
==============================================================================
--- trunk/res/res_agi.c (original)
+++ trunk/res/res_agi.c Fri Mar 27 10:46:46 2009
@@ -737,6 +737,10 @@
 			ast_frfree(f);
 		}
 	}
+
+	if (async_agi.speech) {
+		ast_speech_destroy(async_agi.speech);
+	}
 quit:
 	/* notify manager users this channel cannot be
 	   controlled anymore by Async AGI */
@@ -2929,6 +2933,9 @@
 			}
 		}
 	}
+	if (agi->speech) {
+		ast_speech_destroy(agi->speech);
+	}
 	/* Notify process */
 	if (send_sighup) {
 		if (pid > -1) {




More information about the asterisk-commits mailing list