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

Free old_if when calling kernel_setup(0).

parent 1e57b71b
......@@ -580,6 +580,14 @@ kernel_setup(int setup)
nl_command.sock = -1;
nl_setup = 0;
if(old_if != NULL) {
for(i = 0; i < num_old_if; i++)
free(old_if[i].ifname);
free(old_if);
old_if = NULL;
num_old_if = max_old_if = 0;
}
if(skip_kernel_setup) return 1;
for(i=0; i<NUM_SYSCTLS; i++) {
......
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