[
https://issues.apache.org/jira/browse/TS-4432?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15278141#comment-15278141
]
ASF GitHub Bot commented on TS-4432:
------------------------------------
GitHub user oknet opened a pull request:
https://github.com/apache/trafficserver/pull/625
TS-4432: TSVConnFdCreate, double free on connectUp failure
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/oknet/trafficserver patch-9
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/trafficserver/pull/625.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #625
----
commit d07b53b4e5425c9023c62be9a9b979f9c91a3cc9
Author: Oknet <[email protected]>
Date: 2016-05-10T14:05:20Z
TS-4432: double vc->free()
----
> TSVConnFdCreate, double free on connectUp failure
> -------------------------------------------------
>
> Key: TS-4432
> URL: https://issues.apache.org/jira/browse/TS-4432
> Project: Traffic Server
> Issue Type: Bug
> Components: TS API
> Reporter: Oknet Xu
>
> {{vc->free()}} has been called when connectUp return {CONNECT_FAILURE}.
> but {{TSVConnFdCreate}} call {{vc->free()}} again on {{NOT}}
> {{CONNECT_SUCCESS}}.
> {code}
> if (vc->connectUp(this_ehtread(), fd) != CONNECT_SUCCESS) {
> vc->free(this_ethread());
> return NULL;
> }
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)