diff options
author | Vadim Yanitskiy <vyanitskiy@sysmocom.de> | 2020-09-15 21:15:01 +0700 |
---|---|---|
committer | laforge <laforge@osmocom.org> | 2020-09-15 20:42:17 +0000 |
commit | 35f4212e5823d209f76fe6919406f95fd0c3c5ec (patch) | |
tree | 0d8acc331188741dcefe55924f1531dacecfd806 | |
parent | 5715237911a9708fec3164a427b3db39f218ad19 (diff) |
abis_nm: fix msgb memleak in _abis_nm_sendmsg()
Change-Id: I8e9c5d32e9bc43c760cb71efb8cab4982a305f0e
-rw-r--r-- | src/osmo-bsc/abis_nm.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/osmo-bsc/abis_nm.c b/src/osmo-bsc/abis_nm.c index 8d9849ec3..63bf2b699 100644 --- a/src/osmo-bsc/abis_nm.c +++ b/src/osmo-bsc/abis_nm.c @@ -163,6 +163,7 @@ int _abis_nm_sendmsg(struct msgb *msg) if (!msg->dst) { LOGP(DNM, LOGL_ERROR, "%s: msg->dst == NULL\n", __func__); + msgb_free(msg); return -EINVAL; } |