Skip to content

Commit

Permalink
Fixed double-free in combined HIDAPI controller code
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Aug 10, 2022
1 parent 6ecfc40 commit e49321c
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/joystick/hidapi/SDL_hidapi_combined.c
Expand Up @@ -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;
}
Expand Down

0 comments on commit e49321c

Please sign in to comment.