diff options
| author | Roy Marples <roy@marples.name> | 2018-03-28 18:25:16 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2018-03-28 18:25:16 +0000 |
| commit | 667df0b3ef9bf3313b4e151c8127e444ce5a093e (patch) | |
| tree | d37043cdbdddd0b924464463329b7730fe2525e2 /src/if.c | |
| parent | 17644e6823711d25d6fa381f9930ef63f2df104d (diff) | |
| download | dhcpcd-667df0b3ef9bf3313b4e151c8127e444ce5a093e.tar.xz | |
routes: allow a head clear with a context
This is because optionally defined routes may not have an interface
at the global level.
Also, init route lists earlier so they can be freed without error.
Diffstat (limited to 'src/if.c')
| -rw-r--r-- | src/if.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -85,7 +85,7 @@ if_free(struct interface *ifp) ipv6nd_free(ifp); ipv6_free(ifp); rt_freeif(ifp); - free_options(ifp->options); + free_options(ifp->ctx, ifp->options); free(ifp); } |
