MINOR: compression: use pool_alloc(), not pool_alloc_dirty()

pool_alloc_dirty() is the version below pool_alloc() that never performs
the memory poisonning. It should only be called directly for very large
unstructured areas for which enabling memory poisonning would not bring
anything but could significantly hurt performance (e.g. buffers). Using
this function here will not provide any benefit and will hurt the ability
to debug.

It would be desirable to backport this, although it does not cause any
user-visible bug, it just complicates debugging.
This commit is contained in:
Willy Tarreau 2021-03-22 15:08:17 +01:00
parent 79e6d2a7ad
commit 5bfeb2139b
1 changed files with 1 additions and 1 deletions

View File

@ -87,7 +87,7 @@ comp_strm_init(struct stream *s, struct filter *filter)
{
struct comp_state *st;
st = pool_alloc_dirty(pool_head_comp_state);
st = pool_alloc(pool_head_comp_state);
if (st == NULL)
return -1;