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

This commit is contained in:
Anthony Minessale
2018-04-25 13:33:22 -05:00
committed by Mike Jerris
parent ae4ebf9e24
commit f6a9bdd698

View File

@@ -1018,6 +1018,8 @@ ESL_DECLARE(esl_status_t) esl_connect_timeout(esl_handle_t *handle, const char *
goto fail;
}
handle->destroyed = 0;
if (timeout) {
#ifdef WIN32
u_long arg = 1;
@@ -1115,7 +1117,7 @@ ESL_DECLARE(esl_status_t) esl_connect_timeout(esl_handle_t *handle, const char *
fail:
handle->connected = 0;
esl_disconnect(handle);
return ESL_FAIL;
}