[ 
https://issues.apache.org/jira/browse/TS-4365?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15251190#comment-15251190
 ] 

ASF GitHub Bot commented on TS-4365:
------------------------------------

GitHub user bgaff opened a pull request:

    https://github.com/apache/trafficserver/pull/592

    TS-4365: Prevent invalid clang-analyzer memory leak warnings

    clang-analyzer is currently detecting an invalid memory leak, this PR fixes 
those warnings by saving the plugin pointers.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/bgaff/trafficserver TS-4365

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/trafficserver/pull/592.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 #592
    
----
commit b21024de0b3a1176463d7ee815fc0278a2f5618f
Author: Brian Geffon <[email protected]>
Date:   2016-04-18T13:25:29Z

    TS-4365: Prevent invalid clang-analyzer memory leak warnings in atscppapi

----


> clang-analyzer: benign "leaks" in CPP API plugin examples
> ---------------------------------------------------------
>
>                 Key: TS-4365
>                 URL: https://issues.apache.org/jira/browse/TS-4365
>             Project: Traffic Server
>          Issue Type: Bug
>          Components: CPP API
>            Reporter: Leif Hedstrom
>            Assignee: Brian Geffon
>             Fix For: 7.0.0
>
>
> {code}
> Memory Error  Memory leak     
> lib/atscppapi/examples/helloworld/HelloWorldPlugin.cc   TSPluginInit    34    
>   2       View Report
> Memory Error  Memory leak     
> lib/atscppapi/examples/globalhook/GlobalHookPlugin.cc   TSPluginInit    45    
>   2       View Report
> Memory Error  Memory leak     
> lib/atscppapi/examples/transactionhook/TransactionHookPlugin.cc TSPluginInit  
>   69      2       View Report
> Memory Error  Memory leak     
> lib/atscppapi/examples/multiple_transaction_hooks/MultipleTransactionHookPlugins.cc
>      TSPluginInit    106     2       View Report
> Memory Error  Memory leak     
> lib/atscppapi/examples/clientrequest/ClientRequest.cc   TSPluginInit    138   
>   2       View Report
> Memory Error  Memory leak     
> lib/atscppapi/examples/serverresponse/ServerResponse.cc TSPluginInit    119   
>   2       View Report
> Memory Error  Memory leak     
> lib/atscppapi/examples/clientredirect/ClientRedirect.cc TSPluginInit    79    
>   2       View Report
> Memory Error  Memory leak     
> lib/atscppapi/examples/customresponse/CustomResponse.cc TSPluginInit    87    
>   2       View Report
> Memory Error  Memory leak     
> lib/atscppapi/examples/null_transformation_plugin/NullTransformationPlugin.cc 
>   TSPluginInit    104     2       View Report
> Memory Error  Memory leak     
> lib/atscppapi/examples/post_buffer/PostBuffer.cc        TSPluginInit    82    
>   2       View Report
> Memory Error  Memory leak     
> lib/atscppapi/examples/logger_example/LoggerExample.cc  TSPluginInit    138   
>   2       View Report
> Memory Error  Memory leak     
> lib/atscppapi/examples/stat_example/StatExample.cc      TSPluginInit    77    
>   2       View Report
> Memory Error  Memory leak     
> lib/atscppapi/examples/remap_plugin/RemapPlugin.cc      TSRemapNewInstance    
>   90      2       View Report
> Memory Error  Memory leak     
> lib/atscppapi/examples/custom_error_remap_plugin/CustomErrorRemapPlugin.cc    
>   TSRemapNewInstance      55      2       View Report
> Memory Error  Memory leak     
> lib/atscppapi/examples/async_http_fetch/AsyncHttpFetch.cc       
> handleSendRequestHeaders        100     2       View Report
> Memory Error  Memory leak     
> lib/atscppapi/examples/async_http_fetch/AsyncHttpFetch.cc       TSPluginInit  
>   219     2       View Report
> Memory Error  Memory leak     
> lib/atscppapi/examples/gzip_transformation/GzipTransformationPlugin.cc  
> TSPluginInit    197     2       View Report
> Memory Error  Memory leak     
> lib/atscppapi/examples/timeout_example/TimeoutExamplePlugin.cc  TSPluginInit  
>   62      2       View Report
> Memory Error  Memory leak     
> lib/atscppapi/examples/internal_transaction_handling/InternalTransactionHandling.cc
>      TSPluginInit    76      2       View Report
> Memory Error  Memory leak     
> lib/atscppapi/examples/internal_transaction_handling/InternalTransactionHandling.cc
>      TSPluginInit    77      2       View Report
> Memory Error  Memory leak     lib/atscppapi/examples/intercept/intercept.cc   
> TSPluginInit    60      2       View Report
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to