Commit 13a474b3 authored by Jozef Kralik's avatar Jozef Kralik

fix of double free memory

There was double free memory because refresh_token is removed
from delayed callbacks after finish call and second time is when
reconnect func is called in by refresh_token (refresh_token->is_refresh_token_retry_over->reconnect).
The clean up occurs in cloud_manager_stop, so we can remove it.
parent 1034d1ec
Pipeline #1261 passed with stage
in 4 minutes and 24 seconds
......@@ -87,7 +87,6 @@ static void
reconnect(oc_cloud_context_t *ctx)
oc_set_delayed_callback(ctx, callback_handler, 0);
oc_remove_delayed_callback(ctx, refresh_token);
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