aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/e1_input.c
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2009-06-27 03:09:08 +0200
committerHarald Welte <laforge@gnumonks.org>2009-06-27 03:09:53 +0200
commiteab33356d0685fa93cc29a30c0bcd5ffbf1a543d (patch)
treef45c17aa5f005090cf1428d5a7db5d62dffb0b4e /openbsc/src/e1_input.c
parenta0368540ab965a0d05bab113a72f8a4a9ec8aa20 (diff)
fix various RSL msgb memory leaks in error paths
Diffstat (limited to 'openbsc/src/e1_input.c')
-rw-r--r--openbsc/src/e1_input.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/openbsc/src/e1_input.c b/openbsc/src/e1_input.c
index 56bce019c..2d0c1340f 100644
--- a/openbsc/src/e1_input.c
+++ b/openbsc/src/e1_input.c
@@ -236,6 +236,7 @@ int abis_rsl_sendmsg(struct msgb *msg)
if (!msg->trx || !msg->trx->rsl_link) {
fprintf(stderr, "rsl_sendmsg: msg->trx == NULL\n");
+ talloc_free(msg);
return -EINVAL;
}