]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
sd-dhcp-lease: fix memleaks
authorYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 27 Sep 2018 09:04:59 +0000 (18:04 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 27 Sep 2018 09:04:59 +0000 (18:04 +0900)
src/libsystemd-network/sd-dhcp-lease.c

index 45eab1d41cf958cae45dc3c73ed9a2bae12256c9..863818d6da2820326bf9cde477bcf7c1d4fbe458 100644 (file)
@@ -258,6 +258,8 @@ static sd_dhcp_lease *dhcp_lease_free(sd_dhcp_lease *lease) {
                 free(option);
         }
 
+        free(lease->root_path);
+        free(lease->timezone);
         free(lease->hostname);
         free(lease->domainname);
         free(lease->dns);