path: root/src/procqueue.c
diff options
authorVadim Yanitskiy <>2017-09-12 01:30:48 +0300
committerVadim Yanitskiy <>2017-12-31 12:20:59 +0100
commitf496a998e520c3ab99d09cf279e64b0b9e52318e (patch)
tree493e94c935120ab1039f70685a5acc2616f0d024 /src/procqueue.c
parentfb2326fbcf12abc47e3f24f6c2051e71d013705e (diff)
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.
Diffstat (limited to 'src/procqueue.c')
1 files changed, 1 insertions, 1 deletions
diff --git a/src/procqueue.c b/src/procqueue.c
index 5a75296..78dee4d 100644
--- a/src/procqueue.c
+++ b/src/procqueue.c
@@ -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;