broadband-modem: plug leaks in sim_swap_context_free()

This commit is contained in:
Aleksander Morgado
2022-07-16 15:15:48 +02:00
committed by Aleksander Morgado
parent 41ff262006
commit 76f837697a

View File

@@ -4147,6 +4147,8 @@ typedef struct {
static void
sim_swap_context_free (SimSwapContext *ctx)
{
g_free (ctx->iccid);
g_free (ctx->imsi);
g_clear_object (&ctx->sim);
g_slice_free (SimSwapContext, ctx);
}