[PATCH] gpio: mockup: fix resource leak in error path