You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zookeeper.apache.org by "Colin Patrick McCabe (JIRA)" <ji...@apache.org> on 2013/02/04 20:50:13 UTC
[jira] [Commented] (ZOOKEEPER-1632) fix memory leaks in cli_st
[ https://issues.apache.org/jira/browse/ZOOKEEPER-1632?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13570575#comment-13570575 ]
Colin Patrick McCabe commented on ZOOKEEPER-1632:
-------------------------------------------------
that's a good catch-- we don't need to call {{addrvec_free(&zh->addrs)}} multiple times (although it is safe to do so.)
> fix memory leaks in cli_st
> ---------------------------
>
> Key: ZOOKEEPER-1632
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-1632
> Project: ZooKeeper
> Issue Type: Bug
> Components: c client
> Reporter: Colin Patrick McCabe
> Assignee: Colin Patrick McCabe
> Priority: Minor
> Fix For: 3.5.0, 3.4.6
>
> Attachments: ZOOKEEPER-1632.001.patch, ZOOKEEPER-1632.002.patch
>
>
> Fix two memory leaks revealed by running:
> {code}
> valgrind --leak-check=full ./.libs/cli_st 127.0.0.1:2182
> create /foo
> quit
> {code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira