summaryrefslogtreecommitdiffstats
path: root/runtime
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2011-06-10 22:50:25 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2011-06-10 22:50:25 +0200
commit2c81df12bcbe85d819a43227cc9adb05d8d0fe29 (patch)
tree58652253f98d86a74b8a1ec385629f42308c3d1b /runtime
parent2b5a7f10f5cde91a6463a23daeeb7fbab051e642 (diff)
downloadrsyslog-2c81df12bcbe85d819a43227cc9adb05d8d0fe29.tar.gz
rsyslog-2c81df12bcbe85d819a43227cc9adb05d8d0fe29.tar.xz
rsyslog-2c81df12bcbe85d819a43227cc9adb05d8d0fe29.zip
bugfix: memory leak in imtcp & subsystems under some circumstances
This leak is tied to error conditions which lead to incorrect cleanup of some data structures. Note: this is a backport from v6. In v5, we currently do not have the toolchain to verify the original problem and that it is solved. So this patch is preliminary and subject to change as work progresses.
Diffstat (limited to 'runtime')
-rw-r--r--runtime/nsdsel_gtls.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/runtime/nsdsel_gtls.c b/runtime/nsdsel_gtls.c
index 1a389a00..aff55af2 100644
--- a/runtime/nsdsel_gtls.c
+++ b/runtime/nsdsel_gtls.c
@@ -177,6 +177,7 @@ doRetry(nsd_gtls_t *pNsd)
finalize_it:
if(iRet != RS_RET_OK && iRet != RS_RET_CLOSED && iRet != RS_RET_RETRY)
pNsd->bAbortConn = 1; /* request abort */
+dbgprintf("XXXXXX: doRetry: iRet %d, pNsd->bAbortConn %d\n", iRet, pNsd->bAbortConn);
RETiRet;
}