You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zookeeper.apache.org by "Kevin (JIRA)" <ji...@apache.org> on 2016/04/01 04:44:25 UTC
[jira] [Created] (ZOOKEEPER-2408) zoo_awget() ctx memory does not
be freed if callback watcher was not invoked
Kevin created ZOOKEEPER-2408:
--------------------------------
Summary: zoo_awget() ctx memory does not be freed if callback watcher was not invoked
Key: ZOOKEEPER-2408
URL: https://issues.apache.org/jira/browse/ZOOKEEPER-2408
Project: ZooKeeper
Issue Type: Bug
Components: c client
Affects Versions: 3.4.6
Environment: centos 7
Reporter: Kevin
I lunch a client, then watch some node, call zoo_awget() to watch data, when the client exit, if the node data doesn't change, the callback 'watcher' won't be invoked. and the memory of watcherCtx is not freed
ZOOAPI int zoo_awget(zhandle_t *zh, const char *path,
watcher_fn watcher, void* watcherCtx,
data_completion_t completion, const void *data);
I use valgrind to check and the result show the memory lost.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)