summaryrefslogtreecommitdiffstats
path: root/runtime/queue.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2013-07-17 13:33:13 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2013-07-17 13:33:13 +0200
commitcd2b917feff1f292085cef15574bb5974a11d4a7 (patch)
treece01c0df6b2e7dcf890e29beffccd12b87f65094 /runtime/queue.c
parent44699a0d15f57e3d9e1408dc802a78d286f7813d (diff)
downloadrsyslog-cd2b917feff1f292085cef15574bb5974a11d4a7.tar.gz
rsyslog-cd2b917feff1f292085cef15574bb5974a11d4a7.tar.bz2
rsyslog-cd2b917feff1f292085cef15574bb5974a11d4a7.zip
cosmetic bugfix: file name buffer was not freed on disk queue destruction
This was an extremely small one-time per run memleak, so nothing of concern. However, it bugs under valgrind and similar memory debuggers.
Diffstat (limited to 'runtime/queue.c')
-rw-r--r--runtime/queue.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/runtime/queue.c b/runtime/queue.c
index 5ccdd814..08ef475f 100644
--- a/runtime/queue.c
+++ b/runtime/queue.c
@@ -877,7 +877,8 @@ static rsRetVal qDestructDisk(qqueue_t *pThis)
DEFiRet;
ASSERT(pThis != NULL);
-
+
+ free(pThis->pszQIFNam);
if(pThis->tVars.disk.pWrite != NULL)
strm.Destruct(&pThis->tVars.disk.pWrite);
if(pThis->tVars.disk.pReadDeq != NULL)