mirror of
https://github.com/libretro/RetroArch
synced 2025-04-24 15:02:35 +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;
|
lzma_allocator* alloc = &lzma_codec->allocator;
|
||||||
|
|
||||||
/* free memory */
|
/* free memory */
|
||||||
lzma_allocator_free(alloc);
|
|
||||||
LzmaDec_Free(&lzma_codec->decoder, (ISzAlloc*)&lzma_codec->allocator);
|
LzmaDec_Free(&lzma_codec->decoder, (ISzAlloc*)&lzma_codec->allocator);
|
||||||
|
lzma_allocator_free(alloc);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*-------------------------------------------------
|
/*-------------------------------------------------
|
||||||
|
Loading…
x
Reference in New Issue
Block a user