summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2007-07-30 10:47:14 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2007-07-30 10:47:14 +0000
commit9f12ca0ac86a7d29bdc6518a39b69cd03af41406 (patch)
tree56fd4b908ec9fc354c1f9abca154279025be4d0b
parent207572e21775bb0755a3b71dd45267614c9e04a1 (diff)
downloadrsyslog-9f12ca0ac86a7d29bdc6518a39b69cd03af41406.tar.gz
rsyslog-9f12ca0ac86a7d29bdc6518a39b69cd03af41406.tar.xz
rsyslog-9f12ca0ac86a7d29bdc6518a39b69cd03af41406.zip
fixed a mem leak in OMSRdestruct - freeing the object itself was forgotten
- thanks to varmojfekoj for the patch
-rw-r--r--ChangeLog2
-rw-r--r--objomsr.c1
2 files changed, 3 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 6e0c7a03..de853a66 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -3,6 +3,8 @@ Version 1.17.6 (rgerhards), 2007-07-3?
- fixed bug in OMSRcreate() - always returned SR_RET_OK
- fixed a bug that caused ommysql to always complain about missing
templates
+- fixed a mem leak in OMSRdestruct - freeing the object itself was
+ forgotten - thanks to varmojfekoj for the patch
---------------------------------------------------------------------------
Version 1.17.5 (rgerhards), 2007-07-30
- continued to work on modularization
diff --git a/objomsr.c b/objomsr.c
index 3d3264b5..cb504cd0 100644
--- a/objomsr.c
+++ b/objomsr.c
@@ -50,6 +50,7 @@ rsRetVal OMSRdestruct(omodStringRequest_t *pThis)
}
if(pThis->piTplOpts != NULL)
free(pThis->piTplOpts);
+ free(pThis);
return RS_RET_OK;
}