diff --git a/src/context.c b/src/context.c index 8f02f19e..25f9a160 100644 --- a/src/context.c +++ b/src/context.c @@ -218,5 +218,6 @@ void mosquitto__free_disused_contexts(struct mosquitto_db *db) mqtt3_context_cleanup(db, context, true); context = next; } + db->ll_for_free = NULL; }