aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlbin Eldstål-Damlin <laeder.keps@gmail.com>2009-12-14 21:37:13 +0100
committerMax Kellermann <max@duempel.org>2009-12-14 22:18:28 +0100
commitff3393ebf1e581d97bfcce9045a60f3700688450 (patch)
tree917c7c1bbc2a888519aea1a20348f060b289163b
parent0ac0bd26e73773d075200516dc8000e907d3a1ac (diff)
downloadmpd-ff3393ebf1e581d97bfcce9045a60f3700688450.tar.gz
mpd-ff3393ebf1e581d97bfcce9045a60f3700688450.tar.xz
mpd-ff3393ebf1e581d97bfcce9045a60f3700688450.zip
Fixed memory leak on incorrect route configuration
-rw-r--r--src/filter/route_filter_plugin.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/filter/route_filter_plugin.c b/src/filter/route_filter_plugin.c
index 9ec30e698..5610220fc 100644
--- a/src/filter/route_filter_plugin.c
+++ b/src/filter/route_filter_plugin.c
@@ -159,6 +159,8 @@ route_filter_parse(const struct config_param *param,
g_set_error(error_r, config_quark(), 1,
"Invalid copy around %d in routes spec: %s",
param->line, tokens[c]);
+ g_strfreev(sd);
+ g_strfreev(tokens);
return;
}
@@ -196,6 +198,8 @@ route_filter_parse(const struct config_param *param,
g_set_error(error_r, config_quark(), 1,
"Invalid copy around %d in routes spec: %s",
param->line, tokens[c]);
+ g_strfreev(sd);
+ g_strfreev(tokens);
return;
}