aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/trau_mux.c
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2009-06-26 19:39:35 +0200
committerHarald Welte <laforge@gnumonks.org>2009-06-26 19:39:35 +0200
commit966636f39f17e5d42e7918a2055d400c791671b4 (patch)
treef7bc3c7ac76e2c63ad4a1f5190ed218ab53c2c6b /openbsc/src/trau_mux.c
parentf16571635a9d81893cb7bcc3d12dbf6639f3b3df (diff)
use named variant when allocating msgb's
when we generate a talloc report (SIGUSR1), we can now see which system allocated a given msgb, this helps memory leak debugging
Diffstat (limited to 'openbsc/src/trau_mux.c')
-rw-r--r--openbsc/src/trau_mux.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/openbsc/src/trau_mux.c b/openbsc/src/trau_mux.c
index 7615b6294..04febbd63 100644
--- a/openbsc/src/trau_mux.c
+++ b/openbsc/src/trau_mux.c
@@ -170,7 +170,8 @@ int trau_mux_input(struct gsm_e1_subslot *src_e1_ss,
return -EINVAL;
if (!ue->callref)
return -EINVAL;
- msg = msgb_alloc(sizeof(struct gsm_trau_frame) + sizeof(tf));
+ msg = msgb_alloc(sizeof(struct gsm_trau_frame) + sizeof(tf),
+ "TRAU");
if (!msg)
return -ENOMEM;
frame = (struct gsm_trau_frame *)msg->data;