Skip to content

Commit

Permalink
xdp-app-info: get_bwrap_pidfd() return the fd, so steal it
Browse files Browse the repository at this point in the history
Signed-off-by: Hubert Figuière <[email protected]>
  • Loading branch information
hfiguiere authored and smcv committed Sep 23, 2024
1 parent 8ca29b5 commit b529f76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/xdp-app-info-flatpak.c
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ get_bwrap_pidfd (const char *instance,
fd = open_pid_fd (dirfd (proc), pid, error);
closedir (proc);

return fd;
return xdp_steal_fd (&fd);
}

XdpAppInfo *
Expand Down

0 comments on commit b529f76

Please sign in to comment.