FS-10167: Fixed a bug in ks_pool alloc_mem that assumes memory is zeroed before incrementing reference count rather than assigning it, which worked on linux test for some reason but failed under windows test which identified the issue.

This commit is contained in:
Shane Bryldt 2017-03-23 16:52:49 -06:00
parent b4ff0097eb
commit ad968eda6f
1 changed files with 1 additions and 1 deletions

View File

@ -950,7 +950,7 @@ static void *alloc_mem(ks_pool_t *mp_p, const unsigned long byte_size, ks_status
prefix->m1 = PRE_MAGIC1;
prefix->m2 = PRE_MAGIC2;
prefix->size = size;
prefix->refs++;
prefix->refs = 1;
if (mp_p->mp_log_func != NULL) {
mp_p->mp_log_func(mp_p, KS_POOL_FUNC_INCREF, prefix->size, prefix->refs, NULL, addr, 0);