mirror of https://gerrit.osmocom.org/libosmocore
lapdm: fix memory leak due to unreachable code
detected by Smatch
This commit is contained in:
parent
f4d45ab021
commit
584427cd04
|
@ -1635,7 +1635,6 @@ static int l2_ph_data_ind(struct msgb *msg, struct lapdm_entity *le, uint8_t cha
|
||||||
if (!mctx.dl) {
|
if (!mctx.dl) {
|
||||||
LOGP(DLLAPDM, LOGL_NOTICE, "Received frame for unsupported "
|
LOGP(DLLAPDM, LOGL_NOTICE, "Received frame for unsupported "
|
||||||
"SAPI %d!\n", sapi);
|
"SAPI %d!\n", sapi);
|
||||||
return -EINVAL;
|
|
||||||
msgb_free(msg);
|
msgb_free(msg);
|
||||||
return -EIO;
|
return -EIO;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue