summaryrefslogtreecommitdiffstats
path: root/plugins/mmnormalize
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/mmnormalize')
-rw-r--r--plugins/mmnormalize/mmnormalize.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/mmnormalize/mmnormalize.c b/plugins/mmnormalize/mmnormalize.c
index fcadc328..7e25824a 100644
--- a/plugins/mmnormalize/mmnormalize.c
+++ b/plugins/mmnormalize/mmnormalize.c
@@ -40,7 +40,7 @@
#include <unistd.h>
#include <libestr.h>
#include <libee/libee.h>
-#include <json/json.h>
+#include <json.h>
#include <liblognorm.h>
#include "conf.h"
#include "syslogd-types.h"
@@ -227,6 +227,7 @@ CODESTARTdoAction
/* TODO: this is all extremly ineffcient! */
ee_fmtEventToJSON(event, &str);
cstrJSON = es_str2cstr(str, NULL);
+ ee_deleteEvent(event);
dbgprintf("mmnormalize generated: %s\n", cstrJSON);
tokener = json_tokener_new();