]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
tweak
authorMathieu Rene <mrene@avgs.ca>
Thu, 19 Feb 2009 00:52:06 +0000 (00:52 +0000)
committerMathieu Rene <mrene@avgs.ca>
Thu, 19 Feb 2009 00:52:06 +0000 (00:52 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12151 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/applications/mod_easyroute/mod_easyroute.c

index 586a79b99f3f969bcb4307f2dcdb30fdd01d260c..2ee12666bc22736b6c844c9cc4ecb702aca2550c 100644 (file)
@@ -278,10 +278,11 @@ static switch_status_t route_lookup(char *dn, easyroute_results_t *results, int
                switch_set_string(results->acctcode, "");
        }
 
+       switch_safe_free(sql);
 #else
        switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "mod_easyroute requires core ODBC support. Please refer to the documentation on how to enable this\n");
 #endif
-       switch_safe_free(sql);
+
        if (globals.mutex){
                switch_mutex_unlock(globals.mutex);
        }