summaryrefslogtreecommitdiff
path: root/src/network
diff options
context:
space:
mode:
Diffstat (limited to 'src/network')
-rw-r--r--src/network/networkd-network.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/network/networkd-network.c b/src/network/networkd-network.c
index a452096836..5d7ce1ced2 100644
--- a/src/network/networkd-network.c
+++ b/src/network/networkd-network.c
@@ -257,7 +257,8 @@ int config_parse_netdev(const char *unit,
void *data,
void *userdata) {
Network *network = userdata;
- char *kind_string, *p;
+ _cleanup_free_ char *kind_string = NULL;
+ char *p;
NetDev *netdev;
NetDevKind kind;
int r;