diff options
author | Ronny Chevalier <chevalier.ronny@gmail.com> | 2014-06-24 19:00:32 +0200 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2014-06-24 19:09:57 +0200 |
commit | e1d758033dc7e101ab32323a0f1649d8daf56a22 (patch) | |
tree | a1688425a3c125569b34dc0e28318361245b2bc8 /src/core/killall.c | |
parent | 6ec60d20724d2a32e20d25ef75d2af178c242bc2 (diff) |
use more _cleanup_ macro
Diffstat (limited to 'src/core/killall.c')
-rw-r--r-- | src/core/killall.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/core/killall.c b/src/core/killall.c index eab48f7dca..291e1f90ee 100644 --- a/src/core/killall.c +++ b/src/core/killall.c @@ -202,7 +202,7 @@ static int killall(int sig, Set *pids, bool send_sighup) { void broadcast_signal(int sig, bool wait_for_exit, bool send_sighup) { sigset_t mask, oldmask; - Set *pids = NULL; + _cleanup_set_free_ Set *pids = NULL; if (wait_for_exit) pids = set_new(trivial_hash_func, trivial_compare_func); @@ -223,6 +223,4 @@ void broadcast_signal(int sig, bool wait_for_exit, bool send_sighup) { wait_for_children(pids, &mask); assert_se(sigprocmask(SIG_SETMASK, &oldmask, NULL) == 0); - - set_free(pids); } |