diff options
author | Vadim Yanitskiy <axilirator@gmail.com> | 2019-01-17 14:52:35 +0700 |
---|---|---|
committer | Vadim Yanitskiy <axilirator@gmail.com> | 2019-01-17 13:01:24 +0000 |
commit | 851039cb9b2d1376eb56f5104801a52b14a1b18d (patch) | |
tree | ada1386b2e2770d2ab7d1ac74370f157f388860a | |
parent | 65d74d9864ceee752678ee22fd38d07067746b93 (diff) |
trxcon/l1ctl.c: fix memleak triggered by unsupported messages
Change-Id: I6e636afec8e45d7dc786f5f159cd5d7784d9a83b
-rw-r--r-- | src/host/trxcon/l1ctl.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/host/trxcon/l1ctl.c b/src/host/trxcon/l1ctl.c index 0b6d75ac..2f1d720c 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, |