diff options
| author | Roy Marples <roy@marples.name> | 2019-07-30 11:04:24 +0100 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2019-07-30 11:04:24 +0100 |
| commit | 7a7c6941cb0aa8e1c98f0b678c93b124fba580cd (patch) | |
| tree | 14b7f68a14f055ffc804fe191c30df5a6bf929e4 /src/dhcpcd.c | |
| parent | 9a0112944a8e202e7a17c13cf3fbfd26b247bb86 (diff) | |
| download | dhcpcd-7a7c6941cb0aa8e1c98f0b678c93b124fba580cd.tar.xz | |
routes: Fix a NULL dereference error for global static routes
No idea why you would want them, but just in case .....
Diffstat (limited to 'src/dhcpcd.c')
| -rw-r--r-- | src/dhcpcd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dhcpcd.c b/src/dhcpcd.c index ac498a62..5b64abf4 100644 --- a/src/dhcpcd.c +++ b/src/dhcpcd.c @@ -2125,13 +2125,13 @@ exit1: } free(ctx.ifaces); } + free_options(&ctx, ifo); #ifdef HAVE_OPEN_MEMSTREAM if (ctx.script_fp) fclose(ctx.script_fp); #endif free(ctx.script_buf); free(ctx.script_env); - free_options(&ctx, ifo); rt_dispose(&ctx); free(ctx.duid); if (ctx.link_fd != -1) { |
