libmsc: fix another memleak (struct gsm_sms) in gsm340_rx_tpdu()

Change-Id: I42e819fb83096c1432df16f501b9d1f6a6160ae7
Fixes: I2c50904349dd4ed229b60b8468d776b817c0bd44
This commit is contained in:
Vadim Yanitskiy 2021-11-29 15:45:25 +03:00 committed by laforge
parent ef19fc1ccd
commit 6d594e4e83
1 changed files with 1 additions and 1 deletions

View File

@ -642,7 +642,7 @@ static int gsm340_rx_tpdu(struct gsm_trans *trans, struct msgb *msg,
* attempt re-submission to the ESME)
*/
if (rc == GSM411_RP_CAUSE_MO_NET_OUT_OF_ORDER)
return rc;
goto out; /* free() the message */
/*
* This SMS got routed through SMPP or no receiver exists.