You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zookeeper.apache.org by "Michael Han (JIRA)" <ji...@apache.org> on 2017/08/24 04:47:00 UTC

[jira] [Commented] (ZOOKEEPER-2882) memory leak in zoo_amulti() function

    [ https://issues.apache.org/jira/browse/ZOOKEEPER-2882?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16139548#comment-16139548 ] 

Michael Han commented on ZOOKEEPER-2882:
----------------------------------------

[~guoxiang] Please follow the steps on the [How to Contribute page|https://cwiki.apache.org/confluence/display/ZOOKEEPER/HowToContribute] to create a pull request for your patch. Similar for ZOOKEEPER-2883.

> memory leak in zoo_amulti() function
> ------------------------------------
>
>                 Key: ZOOKEEPER-2882
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-2882
>             Project: ZooKeeper
>          Issue Type: Bug
>          Components: c client
>            Reporter: guoxiang niu
>            Assignee: guoxiang niu
>            Priority: Minor
>
> when default branch is executed in switch(op->type) , alloced memory for oa variable will leak, so, close_buffer_oarchive(&oa, 1); should be called before returning in default branch.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)