Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
orbea -
OpenLDAP
Commits
c65cf6e6
Commit
c65cf6e6
authored
Nov 29, 2018
by
Ondřej Kuzník
Browse files
ITS#8858 Fix use after free
parent
c01e45da
Changes
1
Hide whitespace changes
Inline
Side-by-side
libraries/libldap_r/tpool.c
View file @
c65cf6e6
...
...
@@ -922,11 +922,11 @@ ldap_pvt_thread_pool_free ( ldap_pvt_thread_pool_t *tpool )
assert
(
!
pq
->
ltp_open_count
);
assert
(
LDAP_SLIST_EMPTY
(
&
pq
->
ltp_free_list
)
);
ldap_pvt_thread_cond_destroy
(
&
pq
->
ltp_cond
);
ldap_pvt_thread_mutex_destroy
(
&
pq
->
ltp_mutex
);
if
(
pq
->
ltp_free
)
{
LDAP_FREE
(
pq
->
ltp_free
);
}
ldap_pvt_thread_cond_destroy
(
&
pq
->
ltp_cond
);
ldap_pvt_thread_mutex_destroy
(
&
pq
->
ltp_mutex
);
}
LDAP_FREE
(
pool
->
ltp_wqs
);
LDAP_FREE
(
pool
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment