From: Mathieu Rene Date: Tue, 28 Jul 2009 18:33:18 +0000 (+0000) Subject: switch_core_session_execute_exten: fix missing UNPROTECT_INTERFACE X-Git-Tag: v1.0.4~57 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=60ff1eb5dbcfc332d2bb7b19ae4b8759d520ef5f;p=thirdparty%2Ffreeswitch.git switch_core_session_execute_exten: fix missing UNPROTECT_INTERFACE git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14398 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/switch_core_session.c b/src/switch_core_session.c index e266d2035c..92a399fc60 100644 --- a/src/switch_core_session.c +++ b/src/switch_core_session.c @@ -1545,7 +1545,10 @@ SWITCH_DECLARE(switch_status_t) switch_core_session_execute_exten(switch_core_se count++; - if ((extension = dialplan_interface->hunt_function(session, dparg, new_profile)) != 0) { + extension = dialplan_interface->hunt_function(session, dparg, new_profile); + UNPROTECT_INTERFACE(dialplan_interface); + + if (extension) { break; } }