diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2010-02-04 16:51:53 +0100 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2010-02-04 16:51:53 +0100 |
commit | 8149d06f97d94ec2ae1f3fe117a775f8dcd7ef75 (patch) | |
tree | eba44b9103882a26915f2d13bd36fc2ed08541a1 /tools | |
parent | 4cefc40064a07f6c9c8ab8def2ecbb87b336debe (diff) | |
parent | d71e8672c90628fdfa58ad860833d78cfd5941d8 (diff) | |
download | rsyslog-8149d06f97d94ec2ae1f3fe117a775f8dcd7ef75.tar.gz rsyslog-8149d06f97d94ec2ae1f3fe117a775f8dcd7ef75.tar.xz rsyslog-8149d06f97d94ec2ae1f3fe117a775f8dcd7ef75.zip |
Merge branch 'beta'
Diffstat (limited to 'tools')
-rw-r--r-- | tools/omfwd.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/omfwd.c b/tools/omfwd.c index 0fac251b..1e9e6c27 100644 --- a/tools/omfwd.c +++ b/tools/omfwd.c @@ -458,11 +458,14 @@ CODESTARTdoAction * rgerhards, 2006-11-30 */ dbgprintf("Compression failed, sending uncompressed message\n"); + free(out); } else if(destLen+1 < l) { /* only use compression if there is a gain in using it! */ dbgprintf("there is gain in compression, so we do it\n"); psz = (char*) out; l = destLen + 1; /* take care for the "z" at message start! */ + } else { + free(out); } ++destLen; } |