Skip to content

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

Open
Ar4m1s wants to merge 1 commit into
libretro:masterfrom
Ar4m1s:cheat-manager-double-free
Open

cheat_manager: fix realloc (p, 0) leading to double free#19106
Ar4m1s wants to merge 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

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

1 participant