gprs: make sure that the context is properly released

This commit is contained in:
Giacinto Cifelli 2018-09-20 06:42:59 +02:00 committed by Denis Kenzior
parent abd219c89f
commit 460040f427
1 changed files with 3 additions and 0 deletions

View File

@ -1635,6 +1635,9 @@ static void release_active_contexts(struct ofono_gprs *gprs)
if (gc->driver->detach_shutdown != NULL)
gc->driver->detach_shutdown(gc, ctx->context.cid);
/* Make sure the context is properly cleared */
release_context(ctx);
}
}