core: use _cleanup_set_free_ instread of _cleanup_(set_freep)

This commit is contained in:
Yu Watanabe
2018-05-14 14:13:57 +09:00
parent 1ab436e314
commit af4fa99d6a
4 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -928,7 +928,7 @@ static int append_cgroup(sd_bus_message *reply, const char *p, Set *pids) {
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;
@@ -1015,7 +1015,7 @@ static int property_get_ip_counter(
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;
+1 -1
View File
@@ -704,7 +704,7 @@ static Unit *device_following(Unit *u) {
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);
+1 -1
View File
@@ -1240,7 +1240,7 @@ static Unit *swap_following(Unit *u) {
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);
+1 -1
View File
@@ -3815,7 +3815,7 @@ int unit_kill(Unit *u, KillWho w, int signo, sd_bus_error *error) {
}
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);