mirror of
https://github.com/systemd/systemd.git
synced 2025-01-26 14:04:03 +03:00
fcc1d0315d
This combines set_ensure_allocated() with set_consume(). The cool thing is that because we know the hash ops, we can correctly free the item if appropriate. Similarly to set_consume(), the goal is to simplify handling of the case where the item needs to be freed on error and if already present in the set.