aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/rs232.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/rs232.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/rs232.c')
-rw-r--r--openbsc/src/rs232.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/openbsc/src/rs232.c b/openbsc/src/rs232.c
index 2a64de5ef..a58472364 100644
--- a/openbsc/src/rs232.c
+++ b/openbsc/src/rs232.c
@@ -127,7 +127,7 @@ static int handle_ser_read(struct bsc_fd *bfd)
int rc = 0;
if (!sh->rx_msg) {
- sh->rx_msg = msgb_alloc(SERIAL_ALLOC_SIZE);
+ sh->rx_msg = msgb_alloc(SERIAL_ALLOC_SIZE, "RS232 Rx");
sh->rx_msg->l2h = NULL;
sh->rx_msg->trx = sh->bts->c0;
}