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:
Zbigniew Jędrzejewski-Szmek
2020-05-06 17:08:17 +02:00
parent 2f063186d5
commit e57ac1b017
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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;