diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2008-03-28 13:07:37 +0000 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2008-03-28 13:07:37 +0000 |
commit | 51bfe0339f714390537970ca972667e31fef8d6a (patch) | |
tree | a29770035047303d263f92c5fe16bd9351b64d42 | |
parent | a520f022d241fc7ecb0da7181789dded9ec215dc (diff) | |
download | rsyslog-51bfe0339f714390537970ca972667e31fef8d6a.tar.gz rsyslog-51bfe0339f714390537970ca972667e31fef8d6a.tar.xz rsyslog-51bfe0339f714390537970ca972667e31fef8d6a.zip |
fixed memory leak
-rw-r--r-- | tcpclt.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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) |