]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
sd-radv: fix memory leak
authorSusant Sahani <ssahani@gmail.com>
Mon, 28 Aug 2023 10:21:22 +0000 (15:51 +0530)
committerLuca Boccassi <luca.boccassi@gmail.com>
Mon, 28 Aug 2023 13:07:16 +0000 (14:07 +0100)
src/libsystemd-network/sd-radv.c

index 983c01b202fc6e7280e3f3da084894b39482ae81..cb7bc07f5af759e293b4bb3bca2bbc79de7a914c 100644 (file)
@@ -102,6 +102,7 @@ static sd_radv *radv_free(sd_radv *ra) {
 
         LIST_CLEAR(prefix, ra->prefixes, sd_radv_prefix_unref);
         LIST_CLEAR(prefix, ra->route_prefixes, sd_radv_route_prefix_unref);
+        LIST_CLEAR(prefix, ra->pref64_prefixes, sd_radv_pref64_prefix_unref);
 
         free(ra->rdnss);
         free(ra->dnssl);