提交 f6a9bdd6 authored 作者: Anthony Minessale's avatar Anthony Minessale 提交者: Mike Jerris

FS-11138: [freeswitch-core] Leak in ESL client #resolve

上级 ae4ebf9e
...@@ -1018,6 +1018,8 @@ ESL_DECLARE(esl_status_t) esl_connect_timeout(esl_handle_t *handle, const char * ...@@ -1018,6 +1018,8 @@ ESL_DECLARE(esl_status_t) esl_connect_timeout(esl_handle_t *handle, const char *
goto fail; goto fail;
} }
handle->destroyed = 0;
if (timeout) { if (timeout) {
#ifdef WIN32 #ifdef WIN32
u_long arg = 1; u_long arg = 1;
...@@ -1115,7 +1117,7 @@ ESL_DECLARE(esl_status_t) esl_connect_timeout(esl_handle_t *handle, const char * ...@@ -1115,7 +1117,7 @@ ESL_DECLARE(esl_status_t) esl_connect_timeout(esl_handle_t *handle, const char *
fail: fail:
handle->connected = 0; esl_disconnect(handle);
return ESL_FAIL; return ESL_FAIL;
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论