chiark / gitweb /
networkd: network - fix leak
authorTom Gundersen <teg@jklm.no>
Fri, 9 May 2014 16:05:42 +0000 (18:05 +0200)
committerTom Gundersen <teg@jklm.no>
Sat, 10 May 2014 18:56:37 +0000 (20:56 +0200)
src/network/networkd-network.c

index a452096..5d7ce1c 100644 (file)
@@ -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;