提交 1ad32b8d authored 作者: Anthony Minessale's avatar Anthony Minessale

fix file handle mem leak (thanks pressuerman)

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15114 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 60a9e2dc
...@@ -58,6 +58,8 @@ SWITCH_DECLARE(switch_status_t) switch_core_perform_file_open(const char *file, ...@@ -58,6 +58,8 @@ SWITCH_DECLARE(switch_status_t) switch_core_perform_file_open(const char *file,
return SWITCH_STATUS_FALSE; return SWITCH_STATUS_FALSE;
} }
fh->flags = flags;
if (pool) { if (pool) {
fh->memory_pool = pool; fh->memory_pool = pool;
} else { } else {
...@@ -118,7 +120,7 @@ SWITCH_DECLARE(switch_status_t) switch_core_perform_file_open(const char *file, ...@@ -118,7 +120,7 @@ SWITCH_DECLARE(switch_status_t) switch_core_perform_file_open(const char *file,
fh->file = file; fh->file = file;
fh->func = func; fh->func = func;
fh->line = line; fh->line = line;
fh->flags = flags;
if (spool_path) { if (spool_path) {
char uuid_str[SWITCH_UUID_FORMATTED_LENGTH + 1]; char uuid_str[SWITCH_UUID_FORMATTED_LENGTH + 1];
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论