mirror of
https://github.com/flatpak/flatpak.git
synced 2026-10-28 10:29:42 -04:00
tests: Free each fallback-X11 permission result
The fallback-X11 permission test overwrites res_perms twice. Its autoptr cleanup only frees the last hash table, leaking the first two results. Give each test case its own res_perms so cleanup runs before the next case starts. LeakSanitizer reported 1049 leaked bytes in 30 allocations on Ubuntu 24.04. The test passes with leak detection enabled after this change.
This commit is contained in:
500 Internal Server Error
Gitea Version: 1.28.0+dev-477-g8b6ad49a5f