Commit 7da0807e authored by Hallvard Furuseth's avatar Hallvard Furuseth
Browse files

Unlock new_cached_query->rwlock before destroying it.

Fixes rev 1.210 (new since last OpenLDAP release).
parent 642f7761
......@@ -1601,6 +1601,8 @@ add_query(
templ->no_of_queries++;
} else {
ldap_pvt_thread_mutex_destroy(&new_cached_query->answerable_cnt_mutex);
if (wlock)
ldap_pvt_thread_rdwr_wunlock(&new_cached_query->rwlock);
ldap_pvt_thread_rdwr_destroy( &new_cached_query->rwlock );
ch_free( new_cached_query );
new_cached_query = find_filter( op, qbase->scopes[query->scope],
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment