rsl: fix a memory leak in handle_gprs_susp_req()
Change-Id: I65d9c12888aa5e5112680b3b3f38817e322ecc1c
This commit is contained in:
parent
5c93b8b671
commit
98a47e8c9d
|
@ -3454,6 +3454,7 @@ static int handle_gprs_susp_req(struct msgb *msg)
|
|||
|
||||
if (!gh || msgb_l3len(msg) < sizeof(*gh)+sizeof(*gsr)) {
|
||||
LOGP(DRSL, LOGL_NOTICE, "%s Short GPRS SUSPEND REQ received, ignoring\n", gsm_lchan_name(msg->lchan));
|
||||
msgb_free(msg);
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue