summaryrefslogtreecommitdiff
blob: e0aee5cffd7808da924b24aac25117a5a302b934 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/lib/logwriter.c b/lib/logwriter.c
index 1c4f1c7..4411826 100644
--- a/lib/logwriter.c
+++ b/lib/logwriter.c
@@ -1016,7 +1016,7 @@ struct _LogWriter
         {
           /* push back to the queue */
           log_queue_push_head(self->queue, lm, &path_options);
-
+          log_msg_unref(lm);
           msg_set_context(NULL);
           log_msg_refcache_stop();
           break;