gpio: sim: fix a memory leak
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 v6.1.13 by commit 854e1ecff266033d3149666d3c5b8b0e174b4210, it was introduced in version v5.17 by commit cb8c474e79be458f58e9df073f51ca159f3a2aa0. For more details please see the references link.