chiark / gitweb /
test: do not use last cap from kernel in test-cap-list
[elogind.git] / src / shared / acl-util.c
index fb04e49dc4367e74454bb9996b23823c42b4f926..c93f58a739c3a71406cf355e588af2a6a88b0ee7 100644 (file)
@@ -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();
                         }