diff options
author | varmojfekoj <theinric@redhat.com> | 2010-02-04 16:02:57 +0100 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2010-02-04 16:02:57 +0100 |
commit | 8c3ab2e26f1bae46ff34fc1d0a10a69c4db78127 (patch) | |
tree | fde5f05035166bb859f9be7319f70788b4edb8ef /tools/omfwd.c | |
parent | 7d098f14cba4f31dec7d92136183ebd0ccf7e1d0 (diff) | |
download | rsyslog-8c3ab2e26f1bae46ff34fc1d0a10a69c4db78127.tar.gz rsyslog-8c3ab2e26f1bae46ff34fc1d0a10a69c4db78127.tar.xz rsyslog-8c3ab2e26f1bae46ff34fc1d0a10a69c4db78127.zip |
bugfix: several smaller bugs resolved after flexelint review
Signed-off-by: Rainer Gerhards <rgerhards@adiscon.com>
Diffstat (limited to 'tools/omfwd.c')
-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 97703c79..60c7055a 100644 --- a/tools/omfwd.c +++ b/tools/omfwd.c @@ -455,11 +455,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; } |