jpeg2000: Proper cleanup on failure in decode_frame()