summaryrefslogtreecommitdiffstats
path: root/src/if-bsd.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2021-01-28 23:24:49 +0000
committerRoy Marples <roy@marples.name>2021-01-28 23:24:49 +0000
commite5f451918ccc7a4b191af817e43ce783888f50e4 (patch)
treee5e9367773a2d4faacce4bd0dae584be15f679c0 /src/if-bsd.c
parent701a9d031e0f97d7024639a9fbeaa35afb1bbb83 (diff)
downloaddhcpcd-e5f451918ccc7a4b191af817e43ce783888f50e4.tar.xz
BSD: Plug a memory leak
Diffstat (limited to 'src/if-bsd.c')
-rw-r--r--src/if-bsd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/if-bsd.c b/src/if-bsd.c
index 8fe7d264..c8923460 100644
--- a/src/if-bsd.c
+++ b/src/if-bsd.c
@@ -235,6 +235,7 @@ if_closesockets_os(struct dhcpcd_ctx *ctx)
close(priv->pf_inet6_fd);
free(priv);
ctx->priv = NULL;
+ free(ctx->rt_missfilter);
}
#if defined(SIOCALIFADDR) && defined(IFLR_ACTIVE) /*NetBSD */