Commit ff3393eb authored by Albin Eldstål-Damlin's avatar Albin Eldstål-Damlin Committed by Max Kellermann

Fixed memory leak on incorrect route configuration

parent 0ac0bd26
...@@ -159,6 +159,8 @@ route_filter_parse(const struct config_param *param, ...@@ -159,6 +159,8 @@ route_filter_parse(const struct config_param *param,
g_set_error(error_r, config_quark(), 1, g_set_error(error_r, config_quark(), 1,
"Invalid copy around %d in routes spec: %s", "Invalid copy around %d in routes spec: %s",
param->line, tokens[c]); param->line, tokens[c]);
g_strfreev(sd);
g_strfreev(tokens);
return; return;
} }
...@@ -196,6 +198,8 @@ route_filter_parse(const struct config_param *param, ...@@ -196,6 +198,8 @@ route_filter_parse(const struct config_param *param,
g_set_error(error_r, config_quark(), 1, g_set_error(error_r, config_quark(), 1,
"Invalid copy around %d in routes spec: %s", "Invalid copy around %d in routes spec: %s",
param->line, tokens[c]); param->line, tokens[c]);
g_strfreev(sd);
g_strfreev(tokens);
return; return;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment