projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
mcelog: set n.meta to NULL after meta data is cleared.
[collectd.git]
/
src
/
mcelog.c
diff --git
a/src/mcelog.c
b/src/mcelog.c
index
865b0d1
..
072564b
100644
(file)
--- a/
src/mcelog.c
+++ b/
src/mcelog.c
@@
-380,6
+380,7
@@
static int mcelog_dispatch_mem_notifications(const mcelog_memory_rec_t *mr) {
if (n.meta)
plugin_notification_meta_free(n.meta);
+ n.meta = NULL;
}
}
@@
-404,9
+405,9
@@
static int mcelog_dispatch_mem_notifications(const mcelog_memory_rec_t *mr) {
sizeof(n.type_instance));
n.severity = NOTIF_FAILURE;
plugin_dispatch_notification(&n);
-
if (n.meta)
plugin_notification_meta_free(n.meta);
+ n.meta = NULL;
}
}