zookeeper-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mic...@apache.org
Subject svn commit: r1661571 - in /zookeeper/branches/branch-3.5: CHANGES.txt src/c/src/zookeeper.c
Date Sun, 22 Feb 2015 22:06:13 GMT
Author: michim
Date: Sun Feb 22 22:06:13 2015
New Revision: 1661571

URL: http://svn.apache.org/r1661571
Log:
ZOOKEEPER-2073 Memory leak on zookeeper_close (Dave Gosselin via michim)

Modified:
    zookeeper/branches/branch-3.5/CHANGES.txt
    zookeeper/branches/branch-3.5/src/c/src/zookeeper.c

Modified: zookeeper/branches/branch-3.5/CHANGES.txt
URL: http://svn.apache.org/viewvc/zookeeper/branches/branch-3.5/CHANGES.txt?rev=1661571&r1=1661570&r2=1661571&view=diff
==============================================================================
--- zookeeper/branches/branch-3.5/CHANGES.txt (original)
+++ zookeeper/branches/branch-3.5/CHANGES.txt Sun Feb 22 22:06:13 2015
@@ -36,6 +36,8 @@ BUGFIXES:
   ZOOKEEPER-2114 jute generated allocate_* functions are not externally visible
   (Tim Crowder via michim)
 
+  ZOOKEEPER-2073 Memory leak on zookeeper_close (Dave Gosselin via michim)
+
 IMPROVEMENTS:
   ZOOKEEPER-1660 Documentation for Dynamic Reconfiguration (Reed Wanderman-Milne via shralex)
 

Modified: zookeeper/branches/branch-3.5/src/c/src/zookeeper.c
URL: http://svn.apache.org/viewvc/zookeeper/branches/branch-3.5/src/c/src/zookeeper.c?rev=1661571&r1=1661570&r2=1661571&view=diff
==============================================================================
--- zookeeper/branches/branch-3.5/src/c/src/zookeeper.c (original)
+++ zookeeper/branches/branch-3.5/src/c/src/zookeeper.c Sun Feb 22 22:06:13 2015
@@ -2821,6 +2821,7 @@ int zookeeper_process(zhandle_t *zh, int
             if (zh->close_requested == 1 && cptr == NULL) {
                 LOG_DEBUG(LOGCALLBACK(zh), "Completion queue has been cleared by zookeeper_close()");
                 close_buffer_iarchive(&ia);
+                free_buffer(bptr);
                 return api_epilog(zh,ZINVALIDSTATE);
             }
             assert(cptr);



Mime
View raw message