]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
mod_dingaling: fix leak in chat_send
authorMathieu Rene <mrene@avgs.ca>
Tue, 23 Nov 2010 22:00:08 +0000 (17:00 -0500)
committerMathieu Rene <mrene@avgs.ca>
Tue, 23 Nov 2010 22:00:18 +0000 (17:00 -0500)
src/mod/endpoints/mod_dingaling/mod_dingaling.c

index f5d515c8d4d699bf268e2298303bf09a6fb302ee..480f2bdf52a62835d2b2b241987a272a92df8de3 100644 (file)
@@ -521,6 +521,7 @@ static switch_status_t chat_send(const char *proto, const char *from, const char
                                }
                        }
                        ldl_handle_send_msg(profile->handle, (char *) from, (char *) to, NULL, switch_str_nil(body));
+                       switch_safe_free(ffrom);
                } else {
                        switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Invalid Profile %s\n", f_host ? f_host : "NULL");
                        return SWITCH_STATUS_FALSE;