[
https://issues.apache.org/jira/browse/ZOOKEEPER-2882?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16155292#comment-16155292
]
guoxiang niu edited comment on ZOOKEEPER-2882 at 9/6/17 12:56 PM:
------------------------------------------------------------------
i just added close_buffer_oarchive(&oa, 1); statement after default: statement
in zoo_amulti(), when i executed ant test on windows 10 OS, it showed following
failed message:
BUILD FAILED
\zookeeper\zookeeper\build.xml:1339: The following error occurred while
executing this line:
\zookeeper\zookeeper\build.xml:1220: The following error occurred while
executing this line:
\zookeeper\zookeeper\build.xml:1224: Tests failed!
Total time: 551 minutes 16 seconds
how to solve it?
was (Author: guoxiang):
i just added close_buffer_oarchive(&oa, 1); statement after default: statement
in zoo_amulti(), when i executed ant test on windows 10 OS, it showed following
failed message:
BUILD FAILED
\zookeeper\zookeeper\build.xml:1339: The following error occurred while
executing this line:
\zookeeper\zookeeper\build.xml:1220: The following error occurred while
executing this line:
\zookeeper\zookeeper\build.xml:1224: Tests failed!
how to solve it?
> 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)