1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-01 00:51:24 +03:00

udevd: net - fix leak in .link config

Path, Driver and Type are now strv rather than strings, so free them properly.
This commit is contained in:
Tom Gundersen 2015-05-15 23:59:28 +02:00
parent 35927d13df
commit 43d60b77a8

View File

@ -67,9 +67,9 @@ static void link_config_free(link_config *link) {
free(link->filename); free(link->filename);
free(link->match_mac); free(link->match_mac);
free(link->match_path); strv_free(link->match_path);
free(link->match_driver); strv_free(link->match_driver);
free(link->match_type); strv_free(link->match_type);
free(link->match_name); free(link->match_name);
free(link->match_host); free(link->match_host);
free(link->match_virt); free(link->match_virt);