You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@zookeeper.apache.org by "maoling (Jira)" <ji...@apache.org> on 2020/12/03 01:56:00 UTC
[jira] [Commented] (ZOOKEEPER-4020) Memory leak in Zookeeper C
Client
[ https://issues.apache.org/jira/browse/ZOOKEEPER-4020?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17242852#comment-17242852 ]
maoling commented on ZOOKEEPER-4020:
------------------------------------
[~rogerluo]
Could you please help us fix this issue?
ZooKeeper uses the github workflow. The contributor guideline is [here](https://cwiki.apache.org/confluence/display/ZOOKEEPER/HowToContribute)
> 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
>
> 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.3.4#803005)