[
https://issues.apache.org/jira/browse/ZOOKEEPER-5103?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18132527#comment-18132527
]
Andrew Kyle Purtell commented on ZOOKEEPER-5103:
------------------------------------------------
Thanks for the review and merge [~andor] !
> Address multiple memory leaks identified by static analysis
> -----------------------------------------------------------
>
> Key: ZOOKEEPER-5103
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-5103
> Project: ZooKeeper
> Issue Type: Bug
> Components: c client
> Reporter: Andrew Kyle Purtell
> Assignee: Andrew Kyle Purtell
> Priority: Major
> Labels: pull-request-available
> Fix For: 3.10.0
>
> Time Spent: 1h 40m
> Remaining Estimate: 0h
>
> The C client leaks memory across multiple error handling paths, request
> serialization routines, and handle close sequences. A cluster of open JIRA
> issues (ZOOKEEPER-4975, ZOOKEEPER-4999, ZOOKEEPER-5000, ZOOKEEPER-5004,
> ZOOKEEPER-5005, ZOOKEEPER-5006, ZOOKEEPER-1985, ZOOKEEPER-2882, and
> ZOOKEEPER-3868) all have the same essential root cause, which is an ambiguous
> resource ownership contract (or lack thereof) between the client library and
> application code during failure modes and connection termination.
> Dynamic analysis of master (commit 48f7cb00e) under AddressSanitizer and
> LeakSanitizer reports 45,578 bytes leaked across 178 allocations in the
> CppUnit test harness.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)