osmo-epdg: free the GSUP response
This commit is contained in:
parent
39f114fd95
commit
33974bdfae
|
@ -50,6 +50,7 @@ METHOD(listener_t, eap_authorize, bool,
|
||||||
{
|
{
|
||||||
char imsi[16] = {0};
|
char imsi[16] = {0};
|
||||||
osmo_epdg_ue_t *ue = NULL;
|
osmo_epdg_ue_t *ue = NULL;
|
||||||
|
osmo_epdg_gsup_response_t *resp = NULL;
|
||||||
|
|
||||||
if (!id)
|
if (!id)
|
||||||
{
|
{
|
||||||
|
@ -69,7 +70,7 @@ METHOD(listener_t, eap_authorize, bool,
|
||||||
goto err;
|
goto err;
|
||||||
}
|
}
|
||||||
|
|
||||||
osmo_epdg_gsup_response_t *resp = this->gsup->update_location(this->gsup, imsi, OSMO_GSUP_CN_DOMAIN_PS);
|
resp = this->gsup->update_location(this->gsup, imsi, OSMO_GSUP_CN_DOMAIN_PS);
|
||||||
if (!resp)
|
if (!resp)
|
||||||
{
|
{
|
||||||
DBG1(DBG_NET, "epdg: GSUP: couldn't send Update Location.");
|
DBG1(DBG_NET, "epdg: GSUP: couldn't send Update Location.");
|
||||||
|
@ -84,6 +85,7 @@ METHOD(listener_t, eap_authorize, bool,
|
||||||
}
|
}
|
||||||
ue->set_state(ue, UE_LOCATION_UPDATED);
|
ue->set_state(ue, UE_LOCATION_UPDATED);
|
||||||
ue->put(ue);
|
ue->put(ue);
|
||||||
|
free(resp);
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
||||||
err:
|
err:
|
||||||
|
@ -94,6 +96,10 @@ err:
|
||||||
ue->put(ue);
|
ue->put(ue);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (resp)
|
||||||
|
{
|
||||||
|
free(resp);
|
||||||
|
}
|
||||||
/* keep still subscribed */
|
/* keep still subscribed */
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue