[ 
https://issues.apache.org/jira/browse/ZOOKEEPER-1242?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Peng Futian updated ZOOKEEPER-1242:
-----------------------------------

    Attachment: ZOOKEEPER-1242.patch

Index: src/c/src/zk_hashtable.c
===================================================================
--- src/c/src/zk_hashtable.c    (修订版 1187635)
+++ src/c/src/zk_hashtable.c    (工作拷贝)
@@ -190,7 +190,7 @@
         assert(res);
     }else{
         /* path already exists; check if the watcher already exists */
-        res = add_to_list(&wl, wo, 1);
+        res = add_to_list(&wl, wo, 0);
     }
     return res;
 }
                
> Repeat add watcher, memory leak  
> ---------------------------------
>
>                 Key: ZOOKEEPER-1242
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-1242
>             Project: ZooKeeper
>          Issue Type: Bug
>          Components: c client
>    Affects Versions: 3.3.3
>         Environment: Redhat linux
>            Reporter: Peng Futian
>              Labels: patch
>             Fix For: 3.3.4
>
>         Attachments: ZOOKEEPER-1242.patch
>
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
>  When I repeat add watcher , there are a memory leak. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


Reply via email to