mirror of
https://github.com/libretro/RetroArch.git
synced 2025-04-02 10:51:52 -04:00
Fix heap-use-after-free found when using asan
Fix https://github.com/libretro/RetroArch/issues/9871
This commit is contained in:
parent
95e11234a7
commit
d96409ff37
1 changed files with 1 additions and 1 deletions
|
@ -238,8 +238,8 @@ void lzma_codec_free(void* codec)
|
|||
lzma_allocator* alloc = &lzma_codec->allocator;
|
||||
|
||||
/* free memory */
|
||||
lzma_allocator_free(alloc);
|
||||
LzmaDec_Free(&lzma_codec->decoder, (ISzAlloc*)&lzma_codec->allocator);
|
||||
lzma_allocator_free(alloc);
|
||||
}
|
||||
|
||||
/*-------------------------------------------------
|
||||
|
|
Loading…
Add table
Reference in a new issue