From: Barbara Kaczorowska Date: Fri, 25 Sep 2020 12:50:13 +0000 (+0000) Subject: Fix memory leak in configfile.c X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F3760%2Fhead;p=thirdparty%2Fcollectd.git Fix memory leak in configfile.c --- diff --git a/src/daemon/configfile.c b/src/daemon/configfile.c index 4d40a7784..048d17089 100644 --- a/src/daemon/configfile.c +++ b/src/daemon/configfile.c @@ -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; }