summaryrefslogtreecommitdiffstats
path: root/queue.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2008-03-20 09:31:05 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2008-03-20 09:31:05 +0000
commit06ffec1c3f9e566993d372cc686c8ae7307c5de0 (patch)
tree5bbc3fe7bec322540318ec2d2a564c5f09c48b71 /queue.c
parenta00b06ea93a91f784cf8b41fc493e589a14a80b4 (diff)
downloadrsyslog-06ffec1c3f9e566993d372cc686c8ae7307c5de0.tar.gz
rsyslog-06ffec1c3f9e566993d372cc686c8ae7307c5de0.tar.xz
rsyslog-06ffec1c3f9e566993d372cc686c8ae7307c5de0.zip
bugfix: fixed some minor memory leaks
Diffstat (limited to 'queue.c')
-rw-r--r--queue.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/queue.c b/queue.c
index acf21e32..ed720c55 100644
--- a/queue.c
+++ b/queue.c
@@ -827,9 +827,6 @@ static rsRetVal qDestructDisk(queue_t *pThis)
strmDestruct(&pThis->tVars.disk.pWrite);
strmDestruct(&pThis->tVars.disk.pRead);
- if(pThis->pszSpoolDir != NULL)
- free(pThis->pszSpoolDir);
-
RETiRet;
}
@@ -1926,6 +1923,9 @@ CODESTARTobjDestruct(queue)
if(pThis->pszFilePrefix != NULL)
free(pThis->pszFilePrefix);
+
+ if(pThis->pszSpoolDir != NULL)
+ free(pThis->pszSpoolDir);
ENDobjDestruct(queue)