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. --- queue.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'queue.c') 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 v1.2.3