Uploaded image for project: 'ZooKeeper'
  1. ZooKeeper
  2. ZOOKEEPER-2408

zoo_awget() ctx memory does not be freed if callback watcher was not invoked

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 3.4.6
    • None
    • c client
    • None
    • centos 7

    Description

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            DyncKevin Kevin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: