From ff3393ebf1e581d97bfcce9045a60f3700688450 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Albin=20Eldst=C3=A5l-Damlin?= Date: Mon, 14 Dec 2009 21:37:13 +0100 Subject: [PATCH] Fixed memory leak on incorrect route configuration --- src/filter/route_filter_plugin.c | 4 ++++ 1 file changed, 4 insertions(+) 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; }