1 |
Author: Jan Synáček <jsynacek@redhat.com> |
2 |
Resolves: #1003038 |
3 |
Upstream ITS: #7723 |
4 |
|
5 |
Correctly count references in rwm overlay. |
6 |
|
7 |
--- a/libraries/librewrite/session.c 2010-04-13 22:23:09.000000000 +0200 |
8 |
+++ b/libraries/librewrite/session.c 2013-11-08 08:47:26.000000000 +0100 |
9 |
@@ -161,6 +161,7 @@ |
10 |
#ifdef USE_REWRITE_LDAP_PVT_THREADS |
11 |
if ( session ) { |
12 |
ldap_pvt_thread_mutex_lock( &session->ls_mutex ); |
13 |
+ session->ls_count++; |
14 |
} |
15 |
ldap_pvt_thread_rdwr_runlock( &info->li_cookies_mutex ); |
16 |
#endif /* USE_REWRITE_LDAP_PVT_THREADS */ |
17 |
@@ -178,6 +179,7 @@ |
18 |
) |
19 |
{ |
20 |
assert( session != NULL ); |
21 |
+ session->ls_count--; |
22 |
ldap_pvt_thread_mutex_unlock( &session->ls_mutex ); |
23 |
} |
24 |
|
25 |
|
26 |
|