mirror of
https://github.com/libretro/RetroArch
synced 2025-03-02 19:13:34 +00:00
Merge pull request #9875 from negativeExponent/patch-1
Fix heap-use-after-free found when using asan
This commit is contained in:
commit
ea9d5e3a5e
@ -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