projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'collectd-5.4' into collectd-5.5
[collectd.git]
/
src
/
utils_ignorelist.c
diff --git
a/src/utils_ignorelist.c
b/src/utils_ignorelist.c
index
0ad252b
..
7b1c7d2
100644
(file)
--- a/
src/utils_ignorelist.c
+++ b/
src/utils_ignorelist.c
@@
-131,6
+131,7
@@
static int ignorelist_append_regex(ignorelist_t *il, const char *entry)
if (errsize)
sfree (regerr);
regfree (regtemp);
if (errsize)
sfree (regerr);
regfree (regtemp);
+ sfree (regtemp);
return (1);
}
DEBUG("regex compiled: %s - %i", entry, rcompile);
return (1);
}
DEBUG("regex compiled: %s - %i", entry, rcompile);
@@
-140,6
+141,7
@@
static int ignorelist_append_regex(ignorelist_t *il, const char *entry)
{
ERROR ("cannot allocate new config entry");
regfree (regtemp);
{
ERROR ("cannot allocate new config entry");
regfree (regtemp);
+ sfree (regtemp);
return (1);
}
memset (new, '\0', sizeof(ignorelist_item_t));
return (1);
}
memset (new, '\0', sizeof(ignorelist_item_t));
@@
-248,6
+250,7
@@
void ignorelist_free (ignorelist_t *il)
if (this->rmatch != NULL)
{
regfree (this->rmatch);
if (this->rmatch != NULL)
{
regfree (this->rmatch);
+ sfree (this->rmatch);
this->rmatch = NULL;
}
#endif
this->rmatch = NULL;
}
#endif