mirror of
https://github.com/systemd/systemd
synced 2024-11-02 19:41:12 +00:00
core/namespace: use FOREACH_ARRAY at one more place
This commit is contained in:
parent
0afd4d214f
commit
16871b608e
1 changed files with 3 additions and 3 deletions
|
@ -2644,9 +2644,9 @@ int setup_namespace(const NamespaceParameters *p, char **error_path) {
|
|||
void bind_mount_free_many(BindMount *b, size_t n) {
|
||||
assert(b || n == 0);
|
||||
|
||||
for (size_t i = 0; i < n; i++) {
|
||||
free(b[i].source);
|
||||
free(b[i].destination);
|
||||
FOREACH_ARRAY(i, b, n) {
|
||||
free(i->source);
|
||||
free(i->destination);
|
||||
}
|
||||
|
||||
free(b);
|
||||
|
|
Loading…
Reference in a new issue