aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVadim Yanitskiy <vyanitskiy@sysmocom.de>2020-09-15 21:15:01 +0700
committerlaforge <laforge@osmocom.org>2020-09-15 20:42:17 +0000
commit35f4212e5823d209f76fe6919406f95fd0c3c5ec (patch)
tree0d8acc331188741dcefe55924f1531dacecfd806
parent5715237911a9708fec3164a427b3db39f218ad19 (diff)
abis_nm: fix msgb memleak in _abis_nm_sendmsg()
-rw-r--r--src/osmo-bsc/abis_nm.c1
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;
}