Commit ceb021fb authored by Antonin Décimo's avatar Antonin Décimo Committed by Juliusz Chroboczek

Fix double-free in error path.

Introduced by 3b3813fad09eb694a508789394679b6d3378d472.
parent 1e08aedf
......@@ -721,7 +721,7 @@ static int
parse_ifconf(int c, gnc_t gnc, void *closure,
struct interface_conf **if_conf_return)
{
char *token = NULL;
char *token;
struct interface_conf *if_conf;
if_conf = calloc(1, sizeof(struct interface_conf));
......@@ -743,7 +743,6 @@ parse_ifconf(int c, gnc_t gnc, void *closure,
return parse_anonymous_ifconf(c, gnc, closure, if_conf, if_conf_return);
error:
free(token);
free(if_conf);
return -2;
}
......
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