]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fix memory leak on each sql execution
authorRupa Schomaker <rupa@rupa.com>
Tue, 3 Feb 2009 18:49:25 +0000 (18:49 +0000)
committerRupa Schomaker <rupa@rupa.com>
Tue, 3 Feb 2009 18:49:25 +0000 (18:49 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11611 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/applications/mod_easyroute/mod_easyroute.c

index df6dba7dbc853c761cb0c6dc6ac109f99f0b648a..81a433654d65bd0213bc27fd7f6cda8e46baa04b 100644 (file)
@@ -281,6 +281,7 @@ static switch_status_t route_lookup(char *dn, easyroute_results_t *results, int
 #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);
        }