mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-29 19:19:35 -05:00
Fix uninit'd poolqs in prev commit
This commit is contained in:
parent
0ef9e6107b
commit
448b5269a8
1 changed files with 2 additions and 2 deletions
|
|
@ -248,7 +248,7 @@ ldap_pvt_thread_pool_init_q (
|
|||
}
|
||||
|
||||
for (i=0; i<numqs; i++) {
|
||||
char *ptr = LDAP_MALLOC(sizeof(struct ldap_int_thread_poolq_s) + CACHELINE-1);
|
||||
char *ptr = LDAP_CALLOC(1, sizeof(struct ldap_int_thread_poolq_s) + CACHELINE-1);
|
||||
if (ptr == NULL) {
|
||||
for (--i; i>=0; i--)
|
||||
LDAP_FREE(pool->ltp_wqs[i]->ltp_free);
|
||||
|
|
@ -534,7 +534,7 @@ ldap_pvt_thread_pool_queues(
|
|||
return(-1);
|
||||
pool->ltp_wqs = wqs;
|
||||
for (i=pool->ltp_numqs; i<numqs; i++) {
|
||||
char *ptr = LDAP_MALLOC(sizeof(struct ldap_int_thread_poolq_s) + CACHELINE-1);
|
||||
char *ptr = LDAP_CALLOC(1, sizeof(struct ldap_int_thread_poolq_s) + CACHELINE-1);
|
||||
if (ptr == NULL) {
|
||||
for (; i<numqs; i++)
|
||||
pool->ltp_wqs[i] = NULL;
|
||||
|
|
|
|||
Loading…
Reference in a new issue