Lines 107-112
Link Here
|
107 |
(sasl_realloc_t *) &realloc, |
107 |
(sasl_realloc_t *) &realloc, |
108 |
(sasl_free_t *) &free |
108 |
(sasl_free_t *) &free |
109 |
}; |
109 |
}; |
|
|
110 |
int _sasl_allocation_locked = 0; |
110 |
|
111 |
|
111 |
#define SASL_ENCODEV_EXTRA 4096 |
112 |
#define SASL_ENCODEV_EXTRA 4096 |
112 |
|
113 |
|
Lines 637-642
Link Here
|
637 |
sasl_realloc_t *r, |
638 |
sasl_realloc_t *r, |
638 |
sasl_free_t *f) |
639 |
sasl_free_t *f) |
639 |
{ |
640 |
{ |
|
|
641 |
if (_sasl_allocation_locked++) return; |
642 |
|
640 |
_sasl_allocation_utils.malloc=m; |
643 |
_sasl_allocation_utils.malloc=m; |
641 |
_sasl_allocation_utils.calloc=c; |
644 |
_sasl_allocation_utils.calloc=c; |
642 |
_sasl_allocation_utils.realloc=r; |
645 |
_sasl_allocation_utils.realloc=r; |