diff options
author | Albin Eldstål-Damlin <laeder.keps@gmail.com> | 2009-12-14 21:37:13 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-12-14 22:18:28 +0100 |
commit | ff3393ebf1e581d97bfcce9045a60f3700688450 (patch) | |
tree | 917c7c1bbc2a888519aea1a20348f060b289163b /src | |
parent | 0ac0bd26e73773d075200516dc8000e907d3a1ac (diff) | |
download | mpd-ff3393ebf1e581d97bfcce9045a60f3700688450.tar.gz mpd-ff3393ebf1e581d97bfcce9045a60f3700688450.tar.xz mpd-ff3393ebf1e581d97bfcce9045a60f3700688450.zip |
Fixed memory leak on incorrect route configuration
Diffstat (limited to '')
-rw-r--r-- | src/filter/route_filter_plugin.c | 4 |
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; } |