sd-radv: fix memleak

This commit is contained in:
Yu Watanabe 2019-11-05 13:30:00 +09:00
parent c1ed516cde
commit 69d7eba188
1 changed files with 7 additions and 0 deletions

View File

@ -99,6 +99,13 @@ static sd_radv *radv_free(sd_radv *ra) {
sd_radv_prefix_unref(p);
}
while (ra->route_prefixes) {
sd_radv_route_prefix *p = ra->route_prefixes;
LIST_REMOVE(prefix, ra->route_prefixes, p);
sd_radv_route_prefix_unref(p);
}
free(ra->rdnss);
free(ra->dnssl);