We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 179c8b8 commit b6e81a0Copy full SHA for b6e81a0
src/gc.c
@@ -124,16 +124,15 @@ int ca_chunk_collection_add_index(CaChunkCollection *coll, const char *path) {
124
}
125
126
int ca_gc_cleanup_unused(CaStore *store, CaChunkCollection *coll, unsigned flags) {
127
- _cleanup_(ca_store_iterator_unrefp) CaStoreIterator* iter;
128
- int r;
129
_cleanup_free_ char *ids = NULL;
130
size_t ids_size = 0;
131
size_t removed_chunks = 0, all_chunks = 0, removed_dirs = 0;
+ int r;
132
133
if (!store || !coll)
134
return -EINVAL;
135
136
- iter = ca_store_iterator_new(store);
+ _cleanup_(ca_store_iterator_unrefp) CaStoreIterator* iter = ca_store_iterator_new(store);
137
if (!iter)
138
return log_oom();
139
0 commit comments