[ 
https://issues.apache.org/jira/browse/ZOOKEEPER-4020?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Kezhu Wang resolved ZOOKEEPER-4020.
-----------------------------------
    Fix Version/s: 3.9.4
                   3.10.0
       Resolution: Fixed

Issue resolved by pull request 2209
[https://github.com/apache/zookeeper/pull/2209]

> Memory leak in  Zookeeper C Client
> ----------------------------------
>
>                 Key: ZOOKEEPER-4020
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-4020
>             Project: ZooKeeper
>          Issue Type: Bug
>          Components: c client
>    Affects Versions: 3.6.2
>            Reporter: Roger Luo
>            Priority: Minor
>              Labels: pull-request-available
>             Fix For: 3.9.4, 3.10.0
>
>          Time Spent: 3h 50m
>  Remaining Estimate: 0h
>
> There is memory leak in the SSL support of Zookeeper C Client, see below code 
> (line 1457 of zookeeper.c):
> {code:java}
>     zcert.ca = strtok(strdup(cert), ","); 
> {code}
> In the above code, memory is allocated by calling strdup, but it's never been 
> released.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to