procqueue: allocate an output buffer as named chunk

The talloc_size() call sets the current file name and the current
line number as name for chunk being allocated. This combination
is not so informative during debugging, so let's use the static
'.buffer' string as context name for item's output buffer.
This commit is contained in:
Vadim Yanitskiy 2017-09-12 01:30:48 +03:00
parent fb2326fbcf
commit f496a998e5
1 changed files with 1 additions and 1 deletions

View File

@ -174,7 +174,7 @@ osmo_gapk_pq_prepare(struct osmo_gapk_pq *pq)
buf_size = VAR_BUF_SIZE;
/* Allocate memory for an output buffer */
item->buf = talloc_size(item, buf_size);
item->buf = talloc_named_const(item, buf_size, ".buffer");
if (!item->buf)
return -ENOMEM;
}