fix missed error condition

This commit is contained in:
Anthony Minessale 2012-05-11 12:46:32 -05:00
parent f3b1809a63
commit afdfb9a6e1
1 changed files with 5 additions and 0 deletions

View File

@ -143,6 +143,11 @@ static switch_xml_t xml_url_fetch(const char *section, const char *tag_name, con
}
scgi_disconnect(&handle);
} else {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "DEBUG:\nURL: %s Connection Failed: [%s]\n", binding->url, handle.err);
switch_safe_free(data);
switch_safe_free(stream.data);
return NULL;
}
if (GLOBAL_DEBUG) {