sd-device: use trivial_hash_ops_free_free for managing match sysattrs or properties
authorYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 13 Oct 2020 13:41:34 +0000 (22:41 +0900)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 8 Dec 2020 14:21:00 +0000 (15:21 +0100)
commit4efccdeaa641eacfa87ed794d0cbbea0a9eac320
treee61152b3c68c22b007adb1cc82f7b2c31eb01898
parentf8244f95d0d090f8528dc3f489985f914b4578cc
sd-device: use trivial_hash_ops_free_free for managing match sysattrs or properties

This fixes an issue caused by eb1c1dc029c91750e6255c3fd844b4f4bf238fab.

Before the commit, multiple values can be specified for the same
sysattr or property.

Fixes #17259.

(cherry picked from commit a0887abbd8bd9f1a9a975af08e6b4a43960bb3e2)
src/libsystemd/sd-device/device-enumerator.c