mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-17 08:44:13 +00:00
[mod_hiredis] Xml object is not freed on load.
This commit is contained in:
1 parent
05dbd8bd05
commit
5fd6299267
1 file changed
+4
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user