summaryrefslogtreecommitdiffstats
path: root/plugins/omgssapi
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2010-02-04 16:43:21 +0100
committerRainer Gerhards <rgerhards@adiscon.com>2010-02-04 16:43:21 +0100
commitef193bf0ae75d206e4b50022f8c07e3b908c8491 (patch)
tree2ea9d48da9884b532e02a129565b68f648105280 /plugins/omgssapi
parent66d129c9ca24f6f3001fad9cc854c54a360df49e (diff)
parent8c3ab2e26f1bae46ff34fc1d0a10a69c4db78127 (diff)
downloadrsyslog-ef193bf0ae75d206e4b50022f8c07e3b908c8491.tar.gz
rsyslog-ef193bf0ae75d206e4b50022f8c07e3b908c8491.tar.xz
rsyslog-ef193bf0ae75d206e4b50022f8c07e3b908c8491.zip
Merge branch 'v4-stable' into v4-beta
Diffstat (limited to 'plugins/omgssapi')
-rw-r--r--plugins/omgssapi/omgssapi.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/plugins/omgssapi/omgssapi.c b/plugins/omgssapi/omgssapi.c
index 7b5a46e1..d9f80c14 100644
--- a/plugins/omgssapi/omgssapi.c
+++ b/plugins/omgssapi/omgssapi.c
@@ -431,11 +431,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;
}
@@ -450,6 +453,12 @@ CODESTARTdoAction
break;
}
finalize_it:
+# ifdef USE_NETZIP
+ if(psz != (char*) ppString[0]) {
+ /* we need to free temporary buffer, alloced above - Naoya Nakazawa, 2010-01-11 */
+ free(psz);
+ }
+# endif
ENDdoAction