#include <cat/cat.h>
#include <cat/log.h>
void catlog_freedispatcher(catlog_dispatcher *dp);
The log dispatcher should be freed only when all sessions no longer require it.