]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
sd-device: use string_hash_ops_free_free
authorYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 26 Jan 2021 10:52:56 +0000 (19:52 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 26 Jan 2021 10:52:56 +0000 (19:52 +0900)
src/libsystemd/sd-device/sd-device.c

index d1aa3282bf4bfc394323abc757942760f790e31d..0d9da01daa43e11307ab52b48877ce20edca0277 100644 (file)
@@ -65,8 +65,8 @@ static sd_device *device_free(sd_device *device) {
         free(device->properties_strv);
         free(device->properties_nulstr);
 
-        ordered_hashmap_free_free_free(device->properties);
-        ordered_hashmap_free_free_free(device->properties_db);
+        ordered_hashmap_free(device->properties);
+        ordered_hashmap_free(device->properties_db);
         hashmap_free_free_free(device->sysattr_values);
         set_free(device->sysattrs);
         set_free(device->all_tags);
@@ -93,7 +93,7 @@ int device_add_property_aux(sd_device *device, const char *_key, const char *_va
                 _cleanup_free_ char *key = NULL, *value = NULL, *old_key = NULL, *old_value = NULL;
                 int r;
 
-                r = ordered_hashmap_ensure_allocated(properties, &string_hash_ops);
+                r = ordered_hashmap_ensure_allocated(properties, &string_hash_ops_free_free);
                 if (r < 0)
                         return r;