提交 e1f8e199 authored 作者: Michael Jerris's avatar Michael Jerris

CID:1087632 Resource leak

上级 31b8b55d
......@@ -1364,9 +1364,10 @@ static switch_status_t switch_loadable_module_load_file(char *path, char *filena
interface_struct_handle = switch_dso_data_sym(dso, struct_name, &derr);
}
switch_safe_free(derr)
switch_safe_free(derr);
if (!interface_struct_handle) {
if (!interface_struct_handle) {
if (dso) switch_dso_destroy(&dso);
dso = switch_dso_open(path, load_global, &derr);
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论