main: Fix a double free when uinput setup fails