zookeeper-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mic...@apache.org
Subject svn commit: r1379046 - in /zookeeper/trunk: CHANGES.txt src/c/src/winport.c
Date Thu, 30 Aug 2012 18:26:37 GMT
Author: michim
Date: Thu Aug 30 18:26:37 2012
New Revision: 1379046

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

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

Modified: zookeeper/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/zookeeper/trunk/CHANGES.txt?rev=1379046&r1=1379045&r2=1379046&view=diff
==============================================================================
--- zookeeper/trunk/CHANGES.txt (original)
+++ zookeeper/trunk/CHANGES.txt Thu Aug 30 18:26:37 2012
@@ -227,6 +227,8 @@ BUGFIXES:
   ZOOKEEPER-1533 Correct the documentation of the args for the JavaExample doc.
   (Warren Turkal via michim)
 
+  ZOOKEEPER-1536 c client : memory leak in winport.c (brooklin via michim)
+
 IMPROVEMENTS:
 
   ZOOKEEPER-1170. Fix compiler (eclipse) warnings: unused imports,

Modified: zookeeper/trunk/src/c/src/winport.c
URL: http://svn.apache.org/viewvc/zookeeper/trunk/src/c/src/winport.c?rev=1379046&r1=1379045&r2=1379046&view=diff
==============================================================================
--- zookeeper/trunk/src/c/src/winport.c (original)
+++ zookeeper/trunk/src/c/src/winport.c Thu Aug 30 18:26:37 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 ;
 }
 



Mime
View raw message