From c08d3150c8641cb55dd4c09107e01550a1d2c486 Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Thu, 12 Feb 2009 23:32:31 +0000 Subject: [PATCH] don't leak git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11974 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/asr_tts/mod_pocketsphinx/mod_pocketsphinx.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mod/asr_tts/mod_pocketsphinx/mod_pocketsphinx.c b/src/mod/asr_tts/mod_pocketsphinx/mod_pocketsphinx.c index f15557d689..f267f35633 100644 --- a/src/mod/asr_tts/mod_pocketsphinx/mod_pocketsphinx.c +++ b/src/mod/asr_tts/mod_pocketsphinx/mod_pocketsphinx.c @@ -164,7 +164,8 @@ static switch_status_t pocketsphinx_asr_load_grammar(switch_asr_handle_t *ah, co NULL); if (ps->config == NULL) { - return SWITCH_STATUS_GENERR; + status = SWITCH_STATUS_GENERR; + goto end; } switch_mutex_lock(ps->flag_mutex);