소스 검색

Fixed double-free in combined HIDAPI controller code

Sam Lantinga 3 년 전
부모
커밋
e49321cec5
1개의 변경된 파일0개의 추가작업 그리고 1개의 파일을 삭제
  1. 0 1
      src/joystick/hidapi/SDL_hidapi_combined.c

+ 0 - 1
src/joystick/hidapi/SDL_hidapi_combined.c

@@ -90,7 +90,6 @@ HIDAPI_DriverCombined_OpenJoystick(SDL_HIDAPI_Device *device, SDL_Joystick *joys
                 } else {
                     SDL_strlcpy(new_serial, joystick->serial, new_length);
                 }
-                SDL_free(serial);
                 serial = new_serial;
                 serial_length = new_length;
             }