Commit 3e001c78 authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Fix a memory leak in the filter parser.

parent b632083c
...@@ -254,7 +254,7 @@ parse_filter(gnc_t gnc, void *closure) ...@@ -254,7 +254,7 @@ parse_filter(gnc_t gnc, void *closure)
c = getword(c, &interface, gnc, closure); c = getword(c, &interface, gnc, closure);
if(c < -1) if(c < -1)
goto error; goto error;
filter->ifname = strdup(interface); filter->ifname = interface;
filter->ifindex = if_nametoindex(interface); filter->ifindex = if_nametoindex(interface);
} else if(strcmp(token, "allow") == 0) { } else if(strcmp(token, "allow") == 0) {
filter->result = 0; filter->result = 0;
......
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