summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVadim Yanitskiy <axilirator@gmail.com>2019-01-17 14:52:35 +0700
committerVadim Yanitskiy <axilirator@gmail.com>2019-01-17 13:01:24 +0000
commit851039cb9b2d1376eb56f5104801a52b14a1b18d (patch)
treeada1386b2e2770d2ab7d1ac74370f157f388860a /src
parent65d74d9864ceee752678ee22fd38d07067746b93 (diff)
trxcon/l1ctl.c: fix memleak triggered by unsupported messages
Diffstat (limited to 'src')
-rw-r--r--src/host/trxcon/l1ctl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/host/trxcon/l1ctl.c b/src/host/trxcon/l1ctl.c
index 0b6d75a..2f1d720 100644
--- a/src/host/trxcon/l1ctl.c
+++ b/src/host/trxcon/l1ctl.c
@@ -871,6 +871,7 @@ int l1ctl_rx_cb(struct l1ctl_link *l1l, struct msgb *msg)
case L1CTL_SIM_REQ:
LOGP(DL1C, LOGL_NOTICE, "Ignoring unsupported message "
"(type=%u)\n", l1h->msg_type);
+ msgb_free(msg);
return -ENOTSUP;
default:
LOGP(DL1C, LOGL_ERROR, "Unknown MSG type %u: %s\n", l1h->msg_type,