rsl: fix a memory leak in handle_gprs_susp_req()

Change-Id: I65d9c12888aa5e5112680b3b3f38817e322ecc1c
This commit is contained in:
Vadim Yanitskiy 2021-10-28 22:56:36 +03:00
parent 5c93b8b671
commit 98a47e8c9d
1 changed files with 1 additions and 0 deletions

View File

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