]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
network: fix memleak in route_prefix_free()
authorYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 5 Nov 2019 01:46:44 +0000 (10:46 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 5 Nov 2019 01:48:15 +0000 (10:48 +0900)
src/network/networkd-radv.c

index 8d933f1901df9719fbd10de9abc522db57619930..87db34d6cc0b8ecce37bec8a1f9731400ea0911a 100644 (file)
@@ -31,7 +31,7 @@ void prefix_free(Prefix *prefix) {
         }
 
         network_config_section_free(prefix->section);
-        prefix->radv_prefix = sd_radv_prefix_unref(prefix->radv_prefix);
+        sd_radv_prefix_unref(prefix->radv_prefix);
 
         free(prefix);
 }
@@ -131,6 +131,7 @@ void route_prefix_free(Prefix *prefix) {
         }
 
         network_config_section_free(prefix->section);
+        sd_radv_route_prefix_unref(prefix->radv_route_prefix);
 
         free(prefix);
 }