You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@zookeeper.apache.org by "Roger Luo (Jira)" <ji...@apache.org> on 2020/12/03 00:03:00 UTC
[jira] [Created] (ZOOKEEPER-4020) Memory leak in Zookeeper C
Client
Roger Luo created ZOOKEEPER-4020:
------------------------------------
Summary: 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
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)