]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
udevd: net - fix leak in .link config
authorTom Gundersen <teg@jklm.no>
Fri, 15 May 2015 21:59:28 +0000 (23:59 +0200)
committerTom Gundersen <teg@jklm.no>
Fri, 15 May 2015 23:14:48 +0000 (01:14 +0200)
Path, Driver and Type are now strv rather than strings, so free them properly.

src/udev/net/link-config.c

index 00052dd8c18a948a6e421b60be098193b39dbc39..b3e7d02543938e2d15953c3d7d8f5ce44483d551 100644 (file)
@@ -67,9 +67,9 @@ static void link_config_free(link_config *link) {
         free(link->filename);
 
         free(link->match_mac);
-        free(link->match_path);
-        free(link->match_driver);
-        free(link->match_type);
+        strv_free(link->match_path);
+        strv_free(link->match_driver);
+        strv_free(link->match_type);
         free(link->match_name);
         free(link->match_host);
         free(link->match_virt);