diff --git a/src/mod/applications/mod_skel/mod_skel.c b/src/mod/applications/mod_skel/mod_skel.c index e6ca9d9181..22e4fc2030 100644 --- a/src/mod/applications/mod_skel/mod_skel.c +++ b/src/mod/applications/mod_skel/mod_skel.c @@ -112,8 +112,8 @@ static switch_status_t do_config(switch_bool_t reload) } } - if (cfg) { - switch_xml_free(cfg); + if (xml) { + switch_xml_free(xml); } return SWITCH_STATUS_SUCCESS;