[mod_v8] Fix false-positive memory leak detected in process_status_function() by scan-build

This commit is contained in:
Andrey Volk 2021-04-06 20:06:10 +03:00
parent 0e96038d21
commit 4ab8936a0e
1 changed files with 1 additions and 1 deletions

View File

@ -1376,7 +1376,7 @@ SWITCH_STANDARD_API(process_status_function)
}
switch_snprintf(tmp_str, sizeof(tmp_str), "%d", rows);
switch_xml_set_attr(switch_xml_set_flag(xml_row, SWITCH_XML_DUP), strdup("row_id"), strdup(tmp_str));
switch_xml_set_attr_d(xml_row, "row_id", tmp_str);
if (!(xml_field = switch_xml_add_child_d(xml_row, "task_id", f_off++))) {
goto end;