[Freeswitch-svn] [commit] r11974 - freeswitch/trunk/src/mod/asr_tts/mod_pocketsphinx

FreeSWITCH SVN mikej at freeswitch.org
Thu Feb 12 15:32:31 PST 2009


Author: mikej
Date: Thu Feb 12 17:32:31 2009
New Revision: 11974

Log:
 don't leak

Modified:
   freeswitch/trunk/src/mod/asr_tts/mod_pocketsphinx/mod_pocketsphinx.c

Modified: freeswitch/trunk/src/mod/asr_tts/mod_pocketsphinx/mod_pocketsphinx.c
==============================================================================
--- freeswitch/trunk/src/mod/asr_tts/mod_pocketsphinx/mod_pocketsphinx.c	(original)
+++ freeswitch/trunk/src/mod/asr_tts/mod_pocketsphinx/mod_pocketsphinx.c	Thu Feb 12 17:32:31 2009
@@ -164,7 +164,8 @@
 							 NULL);
 	  
 	if (ps->config == NULL) {
-		return SWITCH_STATUS_GENERR;
+		status = SWITCH_STATUS_GENERR;
+		goto end;
 	}
 
 	switch_mutex_lock(ps->flag_mutex);



More information about the Freeswitch-svn mailing list