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.10.163 by commit bc6a0993bf8f026d8b67fcee9f75e6619324b5bb, it was introduced in version v5.1 by commit eb6176709b235b96511c7b4745c30412568395c7. For more details please see the references link.