mirror of
https://github.com/systemd/systemd.git
synced 2026-08-03 14:40:31 +00:00
tree-wide: use _cleanup_set_free_ where appropriate
If we already have the helper defined, let's use it instead of open-coding.
This commit is contained in:
@@ -1724,7 +1724,7 @@ int bus_unit_queue_job(
|
||||
|
||||
_cleanup_(sd_bus_message_unrefp) sd_bus_message *reply = NULL;
|
||||
_cleanup_free_ char *job_path = NULL, *unit_path = NULL;
|
||||
_cleanup_(set_freep) Set *affected = NULL;
|
||||
_cleanup_set_free_ Set *affected = NULL;
|
||||
Iterator i;
|
||||
Job *j, *a;
|
||||
int r;
|
||||
|
||||
@@ -60,7 +60,7 @@ DEFINE_PRIVATE_HASH_OPS(test_hash_ops, struct test, test_hash, test_compare);
|
||||
|
||||
static void test_struct(void) {
|
||||
_cleanup_(prioq_freep) Prioq *q = NULL;
|
||||
_cleanup_(set_freep) Set *s = NULL;
|
||||
_cleanup_set_free_ Set *s = NULL;
|
||||
unsigned previous = 0, i;
|
||||
struct test *t;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user