mirror of
https://github.com/libretro/RetroArch
synced 2025-04-02 16:20:39 +00:00
(patch.c) apply_patch_content - fix memory leak
This commit is contained in:
parent
fb63786297
commit
a60812a2ee
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…
x
Reference in New Issue
Block a user