osmo_epdg: ue: fixup leaking enumerators
This commit is contained in:
parent
20d11ecede
commit
211b1cd634
|
@ -255,6 +255,7 @@ METHOD(osmo_epdg_ue_t, generate_pco, int,
|
||||||
{
|
{
|
||||||
*pco = NULL;
|
*pco = NULL;
|
||||||
*pco_len = 0;
|
*pco_len = 0;
|
||||||
|
enumerator->destroy(enumerator);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -297,6 +298,7 @@ METHOD(osmo_epdg_ue_t, generate_pco, int,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
*pco_len = iter;
|
*pco_len = iter;
|
||||||
|
enumerator->destroy(enumerator);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue