pulse-server: fix leak in flatpak detection

This commit is contained in:
Wim Taymans 2021-04-06 11:26:02 +02:00
parent 78db493d0d
commit 09243d55ae

View file

@ -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;
}