mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-23 12:42:02 +00:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user