X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fmcelog.c;h=072564bfe680bd0be52caf8c93459b94b807eb08;hb=d6b30b974af0fddb4bddde410cd7b00a9b877496;hp=865b0d128752a81ddd8d3a3bb878ee61305a60f2;hpb=13d7a317bc5c677092b9e9ba1109afe47c952512;p=collectd.git diff --git a/src/mcelog.c b/src/mcelog.c index 865b0d12..072564bf 100644 --- 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; } }