]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/shared/seccomp-util.c
tree-wide: use TAKE_PTR() and TAKE_FD() macros
[thirdparty/systemd.git] / src / shared / seccomp-util.c
index 13c83097a55cfe300e9aa6ff7a299900ca2a1dad..65b14a3c0dd0f873a4d9260d9e9d53163ebc4216 100644 (file)
@@ -1613,8 +1613,7 @@ int parse_syscall_archs(char **l, Set **archs) {
                         return -ENOMEM;
         }
 
-        *archs = _archs;
-        _archs = NULL;
+        *archs = TAKE_PTR(_archs);
 
         return 0;
 }