summaryrefslogtreecommitdiffstats
path: root/plugins/omsnmp/omsnmp.c
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 /plugins/omsnmp/omsnmp.c
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)
Diffstat (limited to 'plugins/omsnmp/omsnmp.c')
-rw-r--r--plugins/omsnmp/omsnmp.c3
1 files changed, 3 insertions, 0 deletions
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