Fixed memory leak on incorrect route configuration
This commit is contained in:
parent
0ac0bd26e7
commit
ff3393ebf1
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user