mod_skinny: fix leak

This commit is contained in:
Nathan Neulinger 2014-04-14 15:04:06 -05:00
parent 93a84cf130
commit 96523a9bef
1 changed files with 1 additions and 0 deletions

View File

@ -2176,6 +2176,7 @@ static switch_status_t load_skinny_config(void)
} }
} /* param */ } /* param */
switch_core_hash_insert(profile->device_type_params_hash, id_str, params); switch_core_hash_insert(profile->device_type_params_hash, id_str, params);
switch_safe_free(id_str);
} else { } else {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING,
"Unknow device type %s in profile %s.\n", switch_xml_attr_soft(xdevice_type, "id"), profile->name); "Unknow device type %s in profile %s.\n", switch_xml_attr_soft(xdevice_type, "id"), profile->name);