Skip to content

Commit

Permalink
Fixing a memory leak when another broker connects. Closes eclipse#2057
Browse files Browse the repository at this point in the history
  • Loading branch information
przemyslawzygmunt committed Feb 1, 2021
1 parent e98cc28 commit 4136542
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/loop.c
Expand Up @@ -285,6 +285,7 @@ void do_disconnect(struct mosquitto *context, int reason)
#endif

if(context->state == mosq_cs_disconnected){
context__cleanup(context, true);
return;
}
#ifdef WITH_WEBSOCKETS
Expand Down

0 comments on commit 4136542

Please sign in to comment.