Commit 0b100dc5 authored by Kishen Maloor's avatar Kishen Maloor

oc_cloud: remove context from list on shutdown

Signed-off-by: Kishen Maloor's avatarKishen Maloor <kishen.maloor@intel.com>
Change-Id: Ia0d9a139da7cf47489b8a806e2258f6986d96945
parent 90bc3cc9
......@@ -352,6 +352,7 @@ oc_cloud_shutdown(void)
cloud_store_deinit(&ctx->store);
cloud_close_endpoint(ctx->cloud_ep);
oc_free_endpoint(ctx->cloud_ep);
oc_list_remove(cloud_context_list, ctx);
oc_memb_free(&cloud_context_pool, ctx);
OC_DBG("cloud_shutdown for %d", (int)device);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment