Merge pull request #9875 from negativeExponent/patch-1

Fix heap-use-after-free found when using asan
This commit is contained in:
Twinaphex 2019-12-18 23:31:56 +01:00 committed by GitHub
commit ea9d5e3a5e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);
}
/*-------------------------------------------------