summaryrefslogtreecommitdiffstats
path: root/objomsr.c
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 /objomsr.c
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
Diffstat (limited to 'objomsr.c')
-rw-r--r--objomsr.c1
1 files changed, 1 insertions, 0 deletions
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;
}