[ https://issues.apache.org/jira/browse/ZOOKEEPER-4020 ]


    Gowrima deleted comment on ZOOKEEPER-4020:
    ------------------------------------

was (Author: JIRAUSER307071):
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
>          Time Spent: 10m
>  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