gsup_client: don't leak the PDU when calloc failed

This commit is contained in:
Alexander Couzens 2024-02-23 02:42:11 +01:00
parent 4e806c0f5b
commit 44e23b2a45
1 changed files with 1 additions and 0 deletions

View File

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