Hi


Due to my company firewall, I do not have access to the git public repository, so I will post this here.


I believe there is a memory leak when duplicate messages are suppressed and messages cannot be consumed:


logwriter.c: log_writer_last_msg_flush(LogWriter *self)

-------------------------------------------


log_queue_push_tail(self->queue, m, &path_options) can return FALSE (message cannot be consumed), in which case the local LogMessage m is leaked.


The fix should be something like


  if (!log_queue_push_tail(self->queue, m, &path_options))

    {

      log_msg_unref(m);

    }


Regards


Andy Kitchingman