diff options
author | Tom Gundersen <teg@jklm.no> | 2015-05-15 23:59:28 +0200 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2015-05-16 01:14:48 +0200 |
commit | 43d60b77a83b3185e37c65c4f2649d24c227c7f0 (patch) | |
tree | a80d57ce2c9cb01785320a9866183b5ebfb05a49 /src/udev/net/link-config.c | |
parent | 35927d13dfb8e313bf653f244fdb3fdb6089c982 (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/udev/net/link-config.c')
-rw-r--r-- | src/udev/net/link-config.c | 6 |
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); |