[
https://issues.apache.org/jira/browse/ZOOKEEPER-1828?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Sebb updated ZOOKEEPER-1828:
----------------------------
Priority: Major (was: Minor)
> Audit src/c/src/zookeeper.c for missing error checking & early returns
> ----------------------------------------------------------------------
>
> Key: ZOOKEEPER-1828
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-1828
> Project: ZooKeeper
> Issue Type: Bug
> Components: c client
> Reporter: Raul Gutierrez Segales
>
> After discussing the patch for ZOOKEEPER-1632 we came to realize that many
> methods in the c client don't honor the internal error checking that they do
> (i.e.: they don't return early on error). This is bad because you might
> return with an error but your call (in case of the async ones) might still
> have been called.
> So at that point it's unclear how the caller should deal with resource
> deallocation.
--
This message was sent by Atlassian JIRA
(v6.1#6144)