From 14f06f25c7a7f6429cf4949df83f90c04bd132cc Mon Sep 17 00:00:00 2001 From: bladeoner Date: Mon, 17 May 2021 01:28:59 +0200 Subject: [PATCH] Snes9x - cheats: Fix of delete instead of free on strdup. (#971) --- source/snes9x/cheats2.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/snes9x/cheats2.cpp b/source/snes9x/cheats2.cpp index 8b5ac9a..1e0e01c 100644 --- a/source/snes9x/cheats2.cpp +++ b/source/snes9x/cheats2.cpp @@ -426,7 +426,7 @@ SCheatGroup S9xCreateCheatGroup (const char *name, const char *cheat) g.c.push_back (c); } - delete[] code_string; + free(code_string); return g; }