1
0
mirror of https://github.com/signalwire/freeswitch.git synced 2025-04-11 15:07:07 +00:00

Merge pull request from signalwire/coverity_06042023_mod_xml_scgi

[mod_xml_scgi] Coverity CID 1468595 (Resource leak)
This commit is contained in:
Andrey Volk 2023-04-07 00:21:16 +03:00 committed by GitHub
commit 919647a035
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -176,6 +176,10 @@ static switch_xml_t xml_url_fetch(const char *section, const char *tag_name, con
if (bytes > XML_SCGI_MAX_BYTES) {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Data too big!\n");
len = -1;
if (expanded != (char*)buf) {
free(expanded);
}
break;
}