X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fdaemon%2Fmeta_data.c;h=e1d0ec5b71f17a9a284b1a37745416accece939a;hb=213eb227d7737bfbd899474033f94342c61dcb8c;hp=4e46ed53355ff30346a239d3d8bcb3d3c5511e34;hpb=fc6f1e3d33d646391adb5cedc62e7b3904c15003;p=collectd.git diff --git a/src/daemon/meta_data.c b/src/daemon/meta_data.c index 4e46ed53..e1d0ec5b 100644 --- a/src/daemon/meta_data.c +++ b/src/daemon/meta_data.c @@ -114,6 +114,8 @@ static meta_entry_t *md_entry_clone (const meta_entry_t *orig) /* {{{ */ 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);