[asterisk-commits] file: branch 1.6.1 r184675 - in /branches/1.6.1: ./ res/res_agi.c

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


Author: file
Date: Fri Mar 27 10:54:22 2009
New Revision: 184675

URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=184675
Log:
Merged revisions 184673 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/trunk

........
  r184673 | file | 2009-03-27 12:46:46 -0300 (Fri, 27 Mar 2009) | 7 lines
  
  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:
    branches/1.6.1/   (props changed)
    branches/1.6.1/res/res_agi.c

Propchange: branches/1.6.1/
------------------------------------------------------------------------------
Binary property 'trunk-merged' - no diff available.

Modified: branches/1.6.1/res/res_agi.c
URL: http://svn.digium.com/svn-view/asterisk/branches/1.6.1/res/res_agi.c?view=diff&rev=184675&r1=184674&r2=184675
==============================================================================
--- branches/1.6.1/res/res_agi.c (original)
+++ branches/1.6.1/res/res_agi.c Fri Mar 27 10:54:22 2009
@@ -492,6 +492,10 @@
 			}
 			ast_frfree(f);
 		}
+	}
+
+	if (async_agi.speech) {
+		ast_speech_destroy(async_agi.speech);
 	}
 quit:
 	/* notify manager users this channel cannot be
@@ -2752,6 +2756,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