int bus_unit_method_get_processes(sd_bus_message *message, void *userdata, sd_bus_error *error) {
_cleanup_(sd_bus_message_unrefp) sd_bus_message *reply = NULL;
- _cleanup_(set_freep) Set *pids = NULL;
+ _cleanup_set_free_ Set *pids = NULL;
Unit *u = userdata;
pid_t pid;
int r;
int bus_unit_method_attach_processes(sd_bus_message *message, void *userdata, sd_bus_error *error) {
_cleanup_(sd_bus_creds_unrefp) sd_bus_creds *creds = NULL;
- _cleanup_(set_freep) Set *pids = NULL;
+ _cleanup_set_free_ Set *pids = NULL;
Unit *u = userdata;
const char *path;
int r;
static int device_following_set(Unit *u, Set **_set) {
Device *d = DEVICE(u), *other;
- _cleanup_(set_freep) Set *set = NULL;
+ _cleanup_set_free_ Set *set = NULL;
int r;
assert(d);
static int swap_following_set(Unit *u, Set **_set) {
Swap *s = SWAP(u), *other;
- _cleanup_(set_freep) Set *set = NULL;
+ _cleanup_set_free_ Set *set = NULL;
int r;
assert(s);
}
static Set *unit_pid_set(pid_t main_pid, pid_t control_pid) {
- _cleanup_(set_freep) Set *pid_set = NULL;
+ _cleanup_set_free_ Set *pid_set = NULL;
int r;
pid_set = set_new(NULL);