tree-wide: use _cleanup_set_free_ and friends
Instead of _cleanup_(set_freep) or so.
This commit is contained in:
@@ -266,7 +266,7 @@ static void test_sd_device_enumerator_filter_subsystem_one(
|
||||
|
||||
static bool test_sd_device_enumerator_filter_subsystem_trial(void) {
|
||||
_cleanup_(sd_device_enumerator_unrefp) sd_device_enumerator *e = NULL;
|
||||
_cleanup_(hashmap_freep) Hashmap *subsystems = NULL;
|
||||
_cleanup_hashmap_free_ Hashmap *subsystems = NULL;
|
||||
unsigned n_new_dev = 0, n_removed_dev = 0;
|
||||
sd_device *d;
|
||||
Hashmap *h;
|
||||
|
||||
@@ -841,7 +841,7 @@ TEST(leave_ratelimit) {
|
||||
bool expect_ratelimit = false, manually_left_ratelimit = false;
|
||||
_cleanup_(sd_event_source_unrefp) sd_event_source *s = NULL;
|
||||
_cleanup_(sd_event_unrefp) sd_event *e = NULL;
|
||||
_cleanup_(close_pairp) int pfd[2] = PIPE_EBADF;
|
||||
_cleanup_close_pair_ int pfd[2] = PIPE_EBADF;
|
||||
unsigned c = 0;
|
||||
int r;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user