]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/coredump/coredump.c
macro: introduce TAKE_PTR() macro
[thirdparty/systemd.git] / src / coredump / coredump.c
index e924750d1b457498a94181bc6589dc433aa17486..6fbfe58bd64ed4b6102b4d552a9e72c15447b60e 100644 (file)
@@ -584,8 +584,7 @@ static int compose_open_fds(pid_t pid, char **open_fds) {
         if (errno > 0)
                 return -errno;
 
-        *open_fds = buffer;
-        buffer = NULL;
+        *open_fds = TAKE_PTR(buffer);
 
         return 0;
 }