]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
BSD: Plug a memory leak
authorRoy Marples <roy@marples.name>
Thu, 28 Jan 2021 23:24:49 +0000 (23:24 +0000)
committerRoy Marples <roy@marples.name>
Thu, 28 Jan 2021 23:24:49 +0000 (23:24 +0000)
src/if-bsd.c

index 8fe7d2644c2aa71514f5c2ef4b8cffc90a45c36a..c8923460c4019557e98134ad62061770cc6a4a3f 100644 (file)
@@ -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 */