]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
don't leak
authorMichael Jerris <mike@jerris.com>
Thu, 12 Feb 2009 23:32:31 +0000 (23:32 +0000)
committerMichael Jerris <mike@jerris.com>
Thu, 12 Feb 2009 23:32:31 +0000 (23:32 +0000)
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

index f15557d689d9c92f67bbea5f8460c3594f3d3c1d..f267f356336b2dd8194a08f8a1fa80f9ad2bb898 100644 (file)
@@ -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);