perf tools: Fix resources leak in perfdataopendir()
This is an automated ID intended to aid in discovery of potential security vulnerabilities. The actual impact and attack plausibility have not yet been proven. This ID is fixed in Linux Kernel version v5.15.87 by commit a8f7fd322f566a9f2f05bc138c4dfc2ae1fe5e74, it was introduced in version v5.1 by commit eb6176709b235b96511c7b4745c30412568395c7. For more details please see the references link.