[PATCH 4.19 03/38] gpio: mockup: fix resource leak in error path