You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@zookeeper.apache.org by mi...@apache.org on 2012/08/30 21:26:58 UTC

svn commit: r1379080 - in /zookeeper/branches/branch-3.4: CHANGES.txt src/c/src/winport.c

Author: michim
Date: Thu Aug 30 19:26:58 2012
New Revision: 1379080

URL: http://svn.apache.org/viewvc?rev=1379080&view=rev
Log:
ZOOKEEPER-1536 c client : memory leak in winport.c (brooklin via michim)

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

Modified: zookeeper/branches/branch-3.4/CHANGES.txt
URL: http://svn.apache.org/viewvc/zookeeper/branches/branch-3.4/CHANGES.txt?rev=1379080&r1=1379079&r2=1379080&view=diff
==============================================================================
--- zookeeper/branches/branch-3.4/CHANGES.txt (original)
+++ zookeeper/branches/branch-3.4/CHANGES.txt Thu Aug 30 19:26:58 2012
@@ -95,6 +95,8 @@ BUGFIXES:
   ZOOKEEPER-1514. FastLeaderElection - leader ignores the round
   information when joining a quorum (flavio via henryr)
 
+  ZOOKEEPER-1536 c client : memory leak in winport.c (brooklin via michim)
+
 IMPROVEMENTS:
 
   ZOOKEEPER-1389. it would be nice if start-foreground used exec $JAVA

Modified: zookeeper/branches/branch-3.4/src/c/src/winport.c
URL: http://svn.apache.org/viewvc/zookeeper/branches/branch-3.4/src/c/src/winport.c?rev=1379080&r1=1379079&r2=1379080&view=diff
==============================================================================
--- zookeeper/branches/branch-3.4/src/c/src/winport.c (original)
+++ zookeeper/branches/branch-3.4/src/c/src/winport.c Thu Aug 30 19:26:58 2012
@@ -109,6 +109,7 @@ pthread_cond_init (pthread_cond_t *cv,
 int pthread_cond_destroy(pthread_cond_t *cond)
 {
        CloseHandle( cond->sema_);
+       DeleteCriticalSection(&cond->waiters_count_lock_);
        return (CloseHandle( cond->waiters_done_ ) == 0)? GetLastError(): 0 ;
 }