don't leak

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11974 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris 2009-02-12 23:32:31 +00:00
parent a04dc0b695
commit c08d3150c8

View File

@ -164,7 +164,8 @@ static switch_status_t pocketsphinx_asr_load_grammar(switch_asr_handle_t *ah, co
NULL); NULL);
if (ps->config == NULL) { if (ps->config == NULL) {
return SWITCH_STATUS_GENERR; status = SWITCH_STATUS_GENERR;
goto end;
} }
switch_mutex_lock(ps->flag_mutex); switch_mutex_lock(ps->flag_mutex);