gsup_client: don't leak the PDU when calloc failed
This commit is contained in:
parent
4e806c0f5b
commit
44e23b2a45
|
@ -590,6 +590,7 @@ static bool on_recv_pdu(void *data, osmo_epdg_ipa_client_t *client, struct msgb
|
|||
resp = calloc(1, sizeof(*resp));
|
||||
if (!resp)
|
||||
{
|
||||
free(pdu);
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue