summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2008-03-28 13:07:37 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2008-03-28 13:07:37 +0000
commit51bfe0339f714390537970ca972667e31fef8d6a (patch)
treea29770035047303d263f92c5fe16bd9351b64d42
parenta520f022d241fc7ecb0da7181789dded9ec215dc (diff)
downloadrsyslog-51bfe0339f714390537970ca972667e31fef8d6a.tar.gz
rsyslog-51bfe0339f714390537970ca972667e31fef8d6a.tar.xz
rsyslog-51bfe0339f714390537970ca972667e31fef8d6a.zip
fixed memory leak
-rw-r--r--tcpclt.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tcpclt.c b/tcpclt.c
index 35daccc9..3a76e47d 100644
--- a/tcpclt.c
+++ b/tcpclt.c
@@ -398,7 +398,8 @@ tcpcltConstructFinalize(tcpclt_t __attribute__((unused)) *pThis)
/* destructor for the tcpclt object */
BEGINobjDestruct(tcpclt) /* be sure to specify the object type also in END and CODESTART macros! */
CODESTARTobjDestruct(tcpclt)
-
+ if(pThis->prevMsg != NULL)
+ free(pThis->prevMsg);
ENDobjDestruct(tcpclt)