summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 7462900)
raw | patch | inline | side by side (parent: 7462900)
author | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Sat, 5 Dec 2015 13:20:29 +0000 (14:20 +0100) | ||
committer | Florian Forster <octo@collectd.org> | |
Sat, 5 Dec 2015 21:56:38 +0000 (22:56 +0100) |
CID #37986
Signed-off-by: Florian Forster <octo@collectd.org>
Signed-off-by: Florian Forster <octo@collectd.org>
src/meta_data.c | patch | blob | history |
diff --git a/src/meta_data.c b/src/meta_data.c
index b6483e8bf77681fbd798b319f282fccd1510f583..0fc58ff5c021e784a3bcc0feb902ab634db040f6 100644 (file)
--- a/src/meta_data.c
+++ b/src/meta_data.c
return (NULL);
copy = md_entry_alloc (orig->key);
+ if (copy == NULL)
+ return (NULL);
copy->type = orig->type;
if (copy->type == MD_TYPE_STRING)
copy->value.mv_string = strdup (orig->value.mv_string);