From 1486175e6b0e1f33a59ec80585f7c33fb97b49c3 Mon Sep 17 00:00:00 2001 From: Rainer Gerhards Date: Fri, 11 Jul 2008 08:45:49 +0200 Subject: bugfix & doc improvement bugfix for mem leak in disk-based queue modes (backport from devel) plus an update to the list of distributions where rsyslog packages are available. --- doc/rsyslog_packages.html | 84 ++++++++++++++++++++++++++++++++--------------- queue.c | 2 ++ 2 files changed, 59 insertions(+), 27 deletions(-) diff --git a/doc/rsyslog_packages.html b/doc/rsyslog_packages.html index 38c43c93..fe3fc57e 100644 --- a/doc/rsyslog_packages.html +++ b/doc/rsyslog_packages.html @@ -5,43 +5,73 @@

rsyslog packages

Thanks to some volunteers, rsyslog is also available in package form on -some distributions. All available packages are listed below. If you would +some distributions. All currently known packages are listed below. If I have forgotten +one or if you would like to maintain a package for a new distribution, please mail me at rgerhards@adiscon.com. Any help is *deeply* appreciated. While I create the core daemon, the package maintainers are really filling it with life, making it available to the average user. I am very grateful for that!

-

This list has last been updated on 2007-07-06 by +

This list has last been updated on 2008-07-11 by Rainer Gerhards. New packages may appear at any time, so be sure to check this page whenever you need a new one.

-

Red Hat has recently begun to build RPMs for rsyslog. The URL changes, but a -good place to look for them is at -freshmeat's rsyslog info page. -Please note that the Red Hat RPMs do currently not include MySQL -functionality. If you need that, you need to compile from the source tarball -(which honestly is quite easy).

-

BSD

-

Give -http://www.freshports.org/sysutils/rsyslog/ a try.

- -

CentOS 4.3

- -http://www.se-community.com/~james/rsyslog/

-

Maintained by James Bergamin.

- -

openSUSE

- -http://download.opensuse.org/repositories/home:/darix/

-

Maintained by darix

- -

Almost any Linux

-

Bennet Todd maintains packages that should work on almost any Linux. +

+ +

Just in case you are interested, the list of distribution is sorted by alphabetic order +of the distribution name. +

If you do not find a suitable package for your distribution, there is no reason +to panic. It is quite simple to install rsyslog from the source tarball, so you +should consider that. diff --git a/queue.c b/queue.c index 20ead4a1..a502ff40 100644 --- a/queue.c +++ b/queue.c @@ -845,6 +845,8 @@ static rsRetVal qAddDisk(queue_t *pThis, void* pUsr) pThis->tVars.disk.sizeOnDisk += nWriteCount; + /* The following line is a backport from 3.19.10 - fixes mem leak */ + objDestruct(pUsr); dbgoprint((obj_t*) pThis, "write wrote %lld octets to disk, queue disk size now %lld octets\n", nWriteCount, pThis->tVars.disk.sizeOnDisk); -- cgit