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 v6.0.13 by commit 371363716398ed718e389bea8c5e9843a79dde4e, it was introduced in version v4.6 by commit 159f3cd92f17c61a4e2a47456de5865b114ef88e. For more details please see the references link.