summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2014-05-09 18:05:42 +0200
committerTom Gundersen <teg@jklm.no>2014-05-10 20:56:37 +0200
commit31d0ac36c62c9ed9646fb478b9d71cc2ecc3e55c (patch)
tree336fa0f9f4e5a70c510c430f96b5e714452b4c4c /src
parent86e6e5d1b4e78d62d1a45539c1de141bc5e839aa (diff)
networkd: network - fix leak
Diffstat (limited to 'src')
-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;