Lines Matching refs:new_key
101 _cleanup_free_ char *new_key = NULL, *new_value = NULL, *old_key = NULL; in device_add_property_aux() local
108 new_key = strdup(key); in device_add_property_aux()
109 if (!new_key) in device_add_property_aux()
119 r = ordered_hashmap_replace(*properties, new_key, new_value); in device_add_property_aux()
123 TAKE_PTR(new_key); in device_add_property_aux()
2052 _cleanup_free_ char *new_key = NULL; in device_cache_sysattr_value() local
2062 old_value = hashmap_remove2(device->sysattr_values, key, (void **) &new_key); in device_cache_sysattr_value()
2063 if (!new_key) { in device_cache_sysattr_value()
2064 new_key = strdup(key); in device_cache_sysattr_value()
2065 if (!new_key) in device_cache_sysattr_value()
2069 r = hashmap_ensure_put(&device->sysattr_values, &string_hash_ops_free_free, new_key, value); in device_cache_sysattr_value()
2073 TAKE_PTR(new_key); in device_cache_sysattr_value()