summaryrefslogtreecommitdiffstats
path: root/runtime/wtp.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2009-04-23 14:29:41 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2009-04-23 14:29:41 +0200
commit6c5264159c099ddc4d06590508980ee53a83b67b (patch)
treeec209c9bdd5d735bc36d504a8c5025d00e1b2b46 /runtime/wtp.c
parent31ba42de664341c0c25236c619c7e1eb81f71d1d (diff)
downloadrsyslog-6c5264159c099ddc4d06590508980ee53a83b67b.tar.gz
rsyslog-6c5264159c099ddc4d06590508980ee53a83b67b.tar.xz
rsyslog-6c5264159c099ddc4d06590508980ee53a83b67b.zip
fixing a small (newly-introduced) memory leak
... plus simplifying free() calls after agreement on mailing list that we no longer need to check if the pointer is non-NULL
Diffstat (limited to 'runtime/wtp.c')
-rw-r--r--runtime/wtp.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/runtime/wtp.c b/runtime/wtp.c
index 8bb55cf7..a23e85f9 100644
--- a/runtime/wtp.c
+++ b/runtime/wtp.c
@@ -152,8 +152,7 @@ CODESTARTobjDestruct(wtp)
pthread_mutex_destroy(&pThis->mut);
pthread_mutex_destroy(&pThis->mutThrdShutdwn);
- if(pThis->pszDbgHdr != NULL)
- free(pThis->pszDbgHdr);
+ free(pThis->pszDbgHdr);
ENDobjDestruct(wtp)