summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2008-04-08 11:57:08 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2008-04-08 11:57:08 +0200
commite2436a0104dd5e9dbe51e4d60972ccf4312a7b88 (patch)
tree48e9f30ac21ce4dd25f4a406707246e70bd9942e
parent8f3b15eba1942373cd14fbf568256abc78aa0aca (diff)
downloadrsyslog-e2436a0104dd5e9dbe51e4d60972ccf4312a7b88.tar.gz
rsyslog-e2436a0104dd5e9dbe51e4d60972ccf4312a7b88.tar.xz
rsyslog-e2436a0104dd5e9dbe51e4d60972ccf4312a7b88.zip
bugfix: omsnmp did not deref errmsg object on exit (no bad effects caused)
-rw-r--r--ChangeLog1
-rw-r--r--plugins/omsnmp/omsnmp.c3
2 files changed, 4 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 8ea0dbed..092067ae 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,7 @@
---------------------------------------------------------------------------
Version 3.14.2 (rgerhards), 2008-04-??
- bugfix: segfault with expression-based filters
+- bugfix: omsnmp did not deref errmsg object on exit (no bad effects caused)
- some cleanup
---------------------------------------------------------------------------
Version 3.14.1 (rgerhards), 2008-04-04
diff --git a/plugins/omsnmp/omsnmp.c b/plugins/omsnmp/omsnmp.c
index 47afe2fd..1deb9d62 100644
--- a/plugins/omsnmp/omsnmp.c
+++ b/plugins/omsnmp/omsnmp.c
@@ -489,6 +489,9 @@ CODESTARTmodExit
free(pszSnmpTrapOID);
if (pszSyslogMessageOID != NULL)
free(pszSyslogMessageOID);
+
+ /* release what we no longer need */
+ objRelease(errmsg, CORE_COMPONENT);
ENDmodExit