]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
mod_skinny: fix leak
authorNathan Neulinger <nneul@neulinger.org>
Mon, 14 Apr 2014 20:04:06 +0000 (15:04 -0500)
committerNathan Neulinger <nneul@neulinger.org>
Mon, 14 Apr 2014 20:04:06 +0000 (15:04 -0500)
src/mod/endpoints/mod_skinny/mod_skinny.c

index c86c6f1885f32b0a590c6ba83ad663cec868ad2b..3d6c52dd38024c33fb878830f7c0a67c293187d9 100644 (file)
@@ -2176,6 +2176,7 @@ static switch_status_t load_skinny_config(void)
                                                                }
                                                        } /* param */
                                                        switch_core_hash_insert(profile->device_type_params_hash, id_str, params);
+                                                       switch_safe_free(id_str);
                                                } else {
                                                        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);