]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
[mod_hiredis] Xml object is not freed on load.
authorAndrey Volk <andywolk@gmail.com>
Mon, 7 Oct 2019 16:54:52 +0000 (20:54 +0400)
committerAndrey Volk <andywolk@gmail.com>
Mon, 30 Dec 2019 20:43:24 +0000 (00:43 +0400)
src/mod/applications/mod_hiredis/hiredis_utils.c

index e90ba6c1ee512e39d1cae0d74dc7a3a40548eea6..ced3f589a2204219aff500ca686aa0cd0b878815 100644 (file)
@@ -115,10 +115,14 @@ switch_status_t mod_hiredis_do_config()
                goto err;
        }
 
+       switch_xml_free(xml);
        return SWITCH_STATUS_SUCCESS;
 
  err:
        switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Configuration failed\n");
+       if (xml) {
+               switch_xml_free(xml);
+       }
        return SWITCH_STATUS_GENERR;
 }