udev: Use TAKE_PTR

This commit is contained in:
Susant Sahani
2021-01-19 05:56:40 +01:00
parent f5b73a7fa8
commit 3c29137626
+3 -1
View File
@@ -1984,7 +1984,9 @@ static int udev_rule_apply_token_to_event(
return log_rule_error_errno(dev, rules, r, "Failed to store SECLABEL{%s}='%s': %m", name, label);;
log_rule_debug(dev, rules, "SECLABEL{%s}='%s'", name, label);
name = label = NULL;
TAKE_PTR(name);
TAKE_PTR(label);
break;
}
case TK_A_ENV: {