diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2010-09-09 12:37:11 +0200 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2010-09-09 12:37:11 +0200 |
commit | 3d50fd6a67b7d0bf31628aea14128a47dd5d326f (patch) | |
tree | 09b16d5dcde952170e3e71a0e96d7468428ea57f /plugins/impstats/impstats.c | |
parent | 3cbd7300c47991aadca00db1b028fd3d5d551040 (diff) | |
download | rsyslog-3d50fd6a67b7d0bf31628aea14128a47dd5d326f.tar.gz rsyslog-3d50fd6a67b7d0bf31628aea14128a47dd5d326f.tar.xz rsyslog-3d50fd6a67b7d0bf31628aea14128a47dd5d326f.zip |
fixed small memory leak, corrected input name
Diffstat (limited to 'plugins/impstats/impstats.c')
-rw-r--r-- | plugins/impstats/impstats.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/impstats/impstats.c b/plugins/impstats/impstats.c index 5f0d19eb..a818d20c 100644 --- a/plugins/impstats/impstats.c +++ b/plugins/impstats/impstats.c @@ -166,6 +166,8 @@ ENDafterRun BEGINmodExit CODESTARTmodExit + prop.Destruct(&pInputName); + prop.Destruct(&pLocalHostIP); /* release objects we used */ objRelease(glbl, CORE_COMPONENT); objRelease(prop, CORE_COMPONENT); @@ -200,7 +202,7 @@ CODEmodInit_QueryRegCFSLineHdlr CHKiRet(omsdRegCFSLineHdlr((uchar *)"resetconfigvariables", 1, eCmdHdlrCustomHandler, resetConfigVariables, NULL, STD_LOADABLE_MODULE_ID)); CHKiRet(prop.Construct(&pInputName)); - CHKiRet(prop.SetString(pInputName, UCHAR_CONSTANT("rsyslogd-pstats"), sizeof("rsyslogd-pstats") - 1)); + CHKiRet(prop.SetString(pInputName, UCHAR_CONSTANT("impstats"), sizeof("impstats") - 1)); CHKiRet(prop.ConstructFinalize(pInputName)); CHKiRet(prop.Construct(&pLocalHostIP)); |