HID: fix possible double-free on error path in hid parser