]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
udev: fix memleak caused by wrong cleanup function
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 12 Oct 2019 15:35:49 +0000 (00:35 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 12 Oct 2019 15:35:53 +0000 (00:35 +0900)
Fixes #13764.

src/udev/udev-rules.c

index efea16e5c5acd4dddd68accb33298626b3cf26e6..b09caeb7f9a6c8d7cae6d981181c2b41cc2253e4 100644 (file)
@@ -2325,7 +2325,7 @@ static int apply_static_dev_perms(const char *devnode, uid_t uid, gid_t gid, mod
 
 static int udev_rule_line_apply_static_dev_perms(UdevRuleLine *rule_line) {
         UdevRuleToken *token;
-        _cleanup_free_ char **tags = NULL;
+        _cleanup_strv_free_ char **tags = NULL;
         uid_t uid = UID_INVALID;
         gid_t gid = GID_INVALID;
         mode_t mode = MODE_INVALID;