]> git.ipfire.org Git - thirdparty/collectd.git/commitdiff
Fix memory leak in configfile.c 3760/head
authorBarbara Kaczorowska <bkjg@google.com>
Fri, 25 Sep 2020 12:50:13 +0000 (12:50 +0000)
committerBarbara Kaczorowska <bkjg@google.com>
Fri, 25 Sep 2020 12:50:13 +0000 (12:50 +0000)
src/daemon/configfile.c

index 4d40a7784c89dc9799767ec05a4ca9393f9df596..048d17089235532d8868ca34e91fc45253bfe3cf 100644 (file)
@@ -791,6 +791,7 @@ static oconfig_item_t *cf_read_generic(const char *path, const char *pattern,
 
     if (temp == NULL) {
       oconfig_free(root);
+      wordfree(&we);
       return NULL;
     }