提交 8339c1f9 authored 作者: nneul at mst.edu's avatar nneul at mst.edu

FS-9201 [mod_skinny] fix leak in api call to list devices

上级 0151b8ed
......@@ -94,6 +94,7 @@ static switch_status_t skinny_api_list_devices(const char *line, const char *cur
return status;
}
if (!(argc = switch_separate_string(myline, ' ', argv, (sizeof(argv) / sizeof(argv[0])))) || argc < 4) {
switch_safe_free(myline);
return status;
}
......@@ -115,6 +116,8 @@ static switch_status_t skinny_api_list_devices(const char *line, const char *cur
status = SWITCH_STATUS_SUCCESS;
}
switch_safe_free(myline);
return status;
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论