mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-04 13:30:12 -05:00
pulse-server: fix leak in flatpak detection
This commit is contained in:
parent
78db493d0d
commit
09243d55ae
1 changed files with 5 additions and 5 deletions
|
|
@ -5856,9 +5856,9 @@ static int check_flatpak(struct client *client, int pid)
|
|||
}
|
||||
if (fstat(info_fd, &stat_buf) != 0 || !S_ISREG(stat_buf.st_mode)) {
|
||||
/* Some weird fd => failure, assume sandboxed */
|
||||
close(info_fd);
|
||||
pw_log_error("error fstat .flatpak-info: %m");
|
||||
}
|
||||
close(info_fd);
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue