mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-12-25 23:21:33 +03:00
networkd: fix memory leak in promote_secondaries_enabled
This commit is contained in:
parent
8e1a72535c
commit
3f550c31b3
@ -590,7 +590,8 @@ static int dhcp4_set_hostname(Link *link) {
|
||||
}
|
||||
|
||||
static bool promote_secondaries_enabled(const char *ifname) {
|
||||
char *promote_secondaries_sysctl, *promote_secondaries_path;
|
||||
_cleanup_free_ char *promote_secondaries_sysctl = NULL;
|
||||
char *promote_secondaries_path;
|
||||
int r;
|
||||
|
||||
promote_secondaries_path = strjoina("net/ipv4/conf/", ifname, "/promote_secondaries");
|
||||
|
Loading…
Reference in New Issue
Block a user