]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
network: fix missing free() in network_free()
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 11 Nov 2018 02:20:51 +0000 (11:20 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 11 Nov 2018 02:21:31 +0000 (11:21 +0900)
Fixes oss-fuzz#11345.

src/network/networkd-network.c

index bf910956cb267f14ee40f1cd2ffc9242c7df10eb..961fae601026811bff2e89a5fdff6ab9f323e620 100644 (file)
@@ -369,7 +369,9 @@ void network_free(Network *network) {
         strv_free(network->search_domains);
         strv_free(network->route_domains);
         strv_free(network->bind_carrier);
+
         strv_free(network->router_search_domains);
+        free(network->router_dns);
 
         netdev_unref(network->bridge);
         netdev_unref(network->bond);