diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2014-03-04 09:20:51 -0500 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2014-03-04 10:04:50 -0500 |
commit | 6e18964d3a365567954fe10ddcfad74babdc427c (patch) | |
tree | a1e62c233e0cac0224623049e6fb98b8e450d0ac /src/shared/acl-util.c | |
parent | e062dec5ae1a443d47885537af85d328c83c67db (diff) |
Introduce strv_consume which takes ownership
This mirrors set_consume and makes the common use a bit nicer.
Diffstat (limited to 'src/shared/acl-util.c')
-rw-r--r-- | src/shared/acl-util.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/shared/acl-util.c b/src/shared/acl-util.c index fb04e49dc4..c93f58a739 100644 --- a/src/shared/acl-util.c +++ b/src/shared/acl-util.c @@ -136,9 +136,8 @@ int search_acl_groups(char*** dst, const char* path, bool* belong) { return log_oom(); } - r = strv_push(dst, name); + r = strv_consume(dst, name); if (r < 0) { - free(name); acl_free(acl); return log_oom(); } |