abis_nm: fix msgb memleak in _abis_nm_sendmsg()

Change-Id: I8e9c5d32e9bc43c760cb71efb8cab4982a305f0e
This commit is contained in:
Vadim Yanitskiy 2020-09-15 21:15:01 +07:00 committed by laforge
parent 5715237911
commit 35f4212e58
1 changed files with 1 additions and 0 deletions

View File

@ -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;
}