[
https://issues.apache.org/jira/browse/TS-3984?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14981704#comment-14981704
]
ASF GitHub Bot commented on TS-3984:
------------------------------------
GitHub user dmorilha opened a pull request:
https://github.com/apache/trafficserver/pull/316
TS-3984: CID 1328817: multiplexer patch to use std::auto_ptr
@bcall @sc0ttbeardsley @zwoop a fix for multiplexer, I am not sure how
coverity flags it... please let me know your thoughts...
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/dmorilha/trafficserver multiplexer-patch
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/trafficserver/pull/316.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 #316
----
commit 04c9f66e436ec489fe434f38715c5e3cf09a6987
Author: Daniel Vitor Morilha <[email protected]>
Date: 2015-10-30T01:42:31Z
TS-3984: CID 1328817: multiplexer patch to use std::auto_ptr
----
> CID 1328817: Resource leaks (CTOR_DTOR_LEAK) in multiplexer plugin
> --------------------------------------------------------------------
>
> Key: TS-3984
> URL: https://issues.apache.org/jira/browse/TS-3984
> Project: Traffic Server
> Issue Type: Bug
> Components: Plugins
> Reporter: Leif Hedstrom
> Assignee: Bryan Call
> Fix For: 6.1.0
>
>
> {code}
> ** CID 1328817: Resource leaks (CTOR_DTOR_LEAK)
> /plugins/experimental/multiplexer/dispatch.cc: 39 in Request::Request(const
> std::basic_string<char, std::char_traits<char>, std::allocator<char>>&,
> tsapi_mbuffer *, tsapi_mloc *)()
> ________________________________________________________________________________________________________
> *** CID 1328817: Resource leaks (CTOR_DTOR_LEAK)
> /plugins/experimental/multiplexer/dispatch.cc: 39 in Request::Request(const
> std::basic_string<char, std::char_traits<char>, std::allocator<char>>&,
> tsapi_mbuffer *, tsapi_mloc *)()
> 33
> 34 extern Statistics statistics;
> 35
> 36 extern size_t timeout;
> 37
> 38 Request::Request(const std::string &h, const TSMBuffer b, const TSMLoc
> l)
> CID 1328817: Resource leaks (CTOR_DTOR_LEAK)
> The constructor allocates field "io" of "Request" but there is no
> destructor.
> 39 : host(h), length(TSHttpHdrLengthGet(b, l)), io(new ats::io::IO())
> 40 {
> 41 assert(!host.empty());
> 42 assert(b != NULL);
> 43 assert(l != NULL);
> 44 assert(io != NULL);
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)