X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fmatch_value.c;h=ae6282c4afa4a54083a745ba14bcaa01873d3eca;hb=8eb9e6285f394569d7fe6ad43a0f4e5f9bca454f;hp=9f02226bdae67109f94a4139cb2f6b60f26cdb34;hpb=e8999694aac7184ac4eea29564a2892f188c4171;p=collectd.git diff --git a/src/match_value.c b/src/match_value.c index 9f02226b..ae6282c4 100644 --- a/src/match_value.c +++ b/src/match_value.c @@ -53,9 +53,18 @@ struct mv_match_s */ static void mv_free_match (mv_match_t *m) /* {{{ */ { + int i; + if (m == NULL) return; + if (m->data_sources != NULL) + { + for (i = 0; i < m->data_sources_num; ++i) + free(m->data_sources[i]); + free(m->data_sources); + } + free (m); } /* }}} void mv_free_match */