]> git.ipfire.org Git - thirdparty/collectd.git/commitdiff
Fix memory leak in configfile.c
authorBarbara Kaczorowska <bkjg@google.com>
Fri, 25 Sep 2020 12:50:13 +0000 (12:50 +0000)
committerFlorian Forster <octo@google.com>
Tue, 29 Sep 2020 07:19:12 +0000 (09:19 +0200)
src/daemon/configfile.c

index 61fa9013fd573ee7d445da47eb4015082af3f907..adf44fc3c7920a09df54fe2bcd2a4f5cabc43be0 100644 (file)
@@ -801,6 +801,7 @@ static oconfig_item_t *cf_read_generic(const char *path, const char *pattern,
 
     if (temp == NULL) {
       oconfig_free(root);
+      wordfree(&we);
       return NULL;
     }