You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/app-admin/syslog-ng/files/syslog-ng-3.3.4-memleak.patch

14 lines
396 B

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;