gpiolib: fix memory leak in gpiochipsetupdev()
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.83 by commit 6daaa84b621485fe28c401be18debf92ae8ef04a, it was introduced in version v4.6 by commit 159f3cd92f17c61a4e2a47456de5865b114ef88e. For more details please see the references link.