summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2015-05-15 23:59:28 +0200
committerTom Gundersen <teg@jklm.no>2015-05-16 01:14:48 +0200
commit43d60b77a83b3185e37c65c4f2649d24c227c7f0 (patch)
treea80d57ce2c9cb01785320a9866183b5ebfb05a49 /src
parent35927d13dfb8e313bf653f244fdb3fdb6089c982 (diff)
udevd: net - fix leak in .link config
Path, Driver and Type are now strv rather than strings, so free them properly.
Diffstat (limited to 'src')
-rw-r--r--src/udev/net/link-config.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/udev/net/link-config.c b/src/udev/net/link-config.c
index 00052dd8c1..b3e7d02543 100644
--- a/src/udev/net/link-config.c
+++ b/src/udev/net/link-config.c
@@ -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);