You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by tr...@apache.org on 2002/03/12 16:30:16 UTC
cvs commit: apr/locks/win32 thread_rwlock.c
trawick 02/03/12 07:30:16
Modified: . CHANGES
locks/win32 thread_rwlock.c
Log:
Fix a segfault in apr_thread_rwlock_destroy() on Win32. The pool
field in the lock was uninitialized.
Submitted by: INOUE Seiichiro <in...@ariel-networks.com>
Reviewed by: Jeff Trawick
Revision Changes Path
1.238 +3 -0 apr/CHANGES
Index: CHANGES
===================================================================
RCS file: /home/cvs/apr/CHANGES,v
retrieving revision 1.237
retrieving revision 1.238
diff -u -r1.237 -r1.238
--- CHANGES 11 Mar 2002 22:17:28 -0000 1.237
+++ CHANGES 12 Mar 2002 15:30:15 -0000 1.238
@@ -1,4 +1,7 @@
Changes with APR b1
+
+ *) Fix a segfault in apr_thread_rwlock_destroy() on Win32.
+ [INOUE Seiichiro <in...@ariel-networks.com>]
*) configure now checks to see if we can change timeout values
[Ian Holsman]
1.5 +1 -0 apr/locks/win32/thread_rwlock.c
Index: thread_rwlock.c
===================================================================
RCS file: /home/cvs/apr/locks/win32/thread_rwlock.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- thread_rwlock.c 29 Sep 2001 05:04:44 -0000 1.4
+++ thread_rwlock.c 12 Mar 2002 15:30:15 -0000 1.5
@@ -72,6 +72,7 @@
apr_pool_t *pool)
{
(*rwlock) = apr_palloc(pool, sizeof(**rwlock));
+ (*rwlock)->pool = pool;
(*rwlock)->readevent=CreateEvent(NULL,TRUE,FALSE,NULL);
(*rwlock)->mutex = CreateEvent(NULL,FALSE,TRUE,NULL);
(*rwlock)->writemutex = CreateMutex(NULL,FALSE,NULL);