mirror of
https://github.com/libretro/RetroArch.git
synced 2025-04-02 10:51:52 -04:00
(patch.c) apply_patch_content - fix memory leak
This commit is contained in:
parent
fb63786297
commit
a60812a2ee
1 changed files with 2 additions and 0 deletions
2
patch.c
2
patch.c
|
@ -548,6 +548,8 @@ error:
|
|||
*buf = ret_buf;
|
||||
*size = ret_size;
|
||||
free(patch_data);
|
||||
if (patched_content)
|
||||
free(patched_content);
|
||||
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue