Fixed memory leak on incorrect route configuration

This commit is contained in:
Albin Eldstål-Damlin 2009-12-14 21:37:13 +01:00 committed by Max Kellermann
parent 0ac0bd26e7
commit ff3393ebf1

View File

@ -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,
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;
} }