Skip to content

cheat_manager: fix realloc (p, 0) leading to double free#19106

Merged
LibretroAdmin merged 1 commit into
libretro:masterfrom
Ar4m1s:cheat-manager-double-free
Jun 14, 2026
Merged

cheat_manager: fix realloc (p, 0) leading to double free#19106
LibretroAdmin merged 1 commit into
libretro:masterfrom
Ar4m1s:cheat-manager-double-free

Conversation

@Ar4m1s

@Ar4m1s Ar4m1s commented Jun 13, 2026

Copy link
Copy Markdown
Contributor

Description

I made sure the cheat_st->cheats is only freed once by making sure that realloc does not take that responsibility.

Related Issues

closes #19105

Reviewers

LibretroAdmin does not seem like a personal account, but is still the author of the commit with mentioned regression.
@LibretroAdmin

@LibretroAdmin LibretroAdmin merged commit ff00d95 into libretro:master Jun 14, 2026
43 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Regression: deleting cheats leads to double free and crash

2 participants