mirror of
https://github.com/libretro/RetroArch
synced 2025-03-01 16:13:40 +00: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
@ -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…
x
Reference in New Issue
Block a user