zookeeper-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mic...@apache.org
Subject svn commit: r1661569 - in /zookeeper/trunk: CHANGES.txt src/c/src/zookeeper.c
Date Sun, 22 Feb 2015 22:05:21 GMT
Author: michim
Date: Sun Feb 22 22:05:20 2015
New Revision: 1661569

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

Modified:
    zookeeper/trunk/CHANGES.txt
    zookeeper/trunk/src/c/src/zookeeper.c

Modified: zookeeper/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/zookeeper/trunk/CHANGES.txt?rev=1661569&r1=1661568&r2=1661569&view=diff
==============================================================================
--- zookeeper/trunk/CHANGES.txt (original)
+++ zookeeper/trunk/CHANGES.txt Sun Feb 22 22:05:20 2015
@@ -40,6 +40,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/trunk/src/c/src/zookeeper.c
URL: http://svn.apache.org/viewvc/zookeeper/trunk/src/c/src/zookeeper.c?rev=1661569&r1=1661568&r2=1661569&view=diff
==============================================================================
--- zookeeper/trunk/src/c/src/zookeeper.c (original)
+++ zookeeper/trunk/src/c/src/zookeeper.c Sun Feb 22 22:05:20 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