From 35f4212e5823d209f76fe6919406f95fd0c3c5ec Mon Sep 17 00:00:00 2001 From: Vadim Yanitskiy Date: Tue, 15 Sep 2020 21:15:01 +0700 Subject: abis_nm: fix msgb memleak in _abis_nm_sendmsg() Change-Id: I8e9c5d32e9bc43c760cb71efb8cab4982a305f0e --- src/osmo-bsc/abis_nm.c | 1 + 1 file changed, 1 insertion(+) 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; } -- cgit v1.2.3