zookeeper-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "guoxiang niu (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (ZOOKEEPER-2882) memory leak in zoo_amulti() function
Date Sun, 10 Sep 2017 02:01:16 GMT

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

guoxiang niu commented on ZOOKEEPER-2882:

when i executed ant test-core-cppunit command, it showed me following error message:

d:\niugx\work\zookeeper\zookeeper\build.xml:1298: The following error occurred while executing
this line:
d:\niugx\work\zookeeper\zookeeper\build.xml:1285: The following error occurred while executing
this line:
d:\niugx\work\zookeeper\zookeeper\build.xml:1277: Execute failed: java.io.IOException: Cannot
run program "autoreconf" (in directory "d:\niugx\work\zookeeper\zookeeper\src\c"): CreateProcess
error=2, 系统找不到指定的文件。
        at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
        at java.lang.Runtime.exec(Runtime.java:620)
        at org.apache.tools.ant.taskdefs.launcher.Java13CommandLauncher.exec(Java13CommandLauncher.java:58)
        at org.apache.tools.ant.taskdefs.Execute.launch(Execute.java:426)

so, whether i need to do something (e.g. initialize or configure ) before executing ant test-core-cppunit?

> 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

This message was sent by Atlassian JIRA

View raw message