mirror of
https://github.com/systemd/systemd.git
synced 2024-11-06 08:26:52 +03:00
network: fix memleak in route_prefix_free()
This commit is contained in:
parent
095b3a7d90
commit
471e126b25
@ -31,7 +31,7 @@ void prefix_free(Prefix *prefix) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
network_config_section_free(prefix->section);
|
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);
|
free(prefix);
|
||||||
}
|
}
|
||||||
@ -131,6 +131,7 @@ void route_prefix_free(Prefix *prefix) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
network_config_section_free(prefix->section);
|
network_config_section_free(prefix->section);
|
||||||
|
sd_radv_route_prefix_unref(prefix->radv_route_prefix);
|
||||||
|
|
||||||
free(prefix);
|
free(prefix);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user