summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 67100d8)
raw | patch | inline | side by side (parent: 67100d8)
author | Florian Forster <octo@collectd.org> | |
Tue, 26 Feb 2013 06:42:21 +0000 (07:42 +0100) | ||
committer | Florian Forster <octo@collectd.org> | |
Tue, 26 Feb 2013 06:42:21 +0000 (07:42 +0100) |
src/snort.c | patch | blob | history |
diff --git a/src/snort.c b/src/snort.c
index 3fb48b6bf6323fa544413b3939ecddd1c1786757..c3867c81d124df6be33d536f00c87ef8cfd66f74 100644 (file)
--- a/src/snort.c
+++ b/src/snort.c
sfree(md->name);
sfree(md->type);
+ sfree(md->instance);
sfree(md);
}
if (md == NULL)
return (-1);
memset(md, 0, sizeof(*md));
-
md->name = NULL;
+ md->type = NULL;
+ md->instance = NULL;
+ md->next = NULL;
+
status = cf_util_get_string (ci, &md->name);
if (status != 0) {
sfree (md);