abis_nm: fix msgb memleak in _abis_nm_sendmsg()
Change-Id: I8e9c5d32e9bc43c760cb71efb8cab4982a305f0e
This commit is contained in:
parent
5715237911
commit
35f4212e58
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue