* grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_end): Fix memory leak.

This commit is contained in:
Szymon Janc 2010-09-15 00:13:09 +02:00
parent 79c4eeb919
commit dd521a4afb
2 changed files with 8 additions and 0 deletions

View file

@ -1,3 +1,7 @@
2010-09-15 Szymon Janc <szymon@janc.net.pl>
* grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_end): Fix memory leak.
2010-09-14 Vladimir Serbinenko <phcoder@gmail.com> 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
Fix incorrect echo options handling. Fix incorrect echo options handling.

View file

@ -853,6 +853,10 @@ void xz_dec_end(struct xz_dec *s)
{ {
if (s != NULL) { if (s != NULL) {
xz_dec_lzma2_end(s->lzma2); xz_dec_lzma2_end(s->lzma2);
kfree(s->index.hash.crc32_context);
kfree(s->block.hash.crc32_context);
kfree(s->crc32_context);
#ifdef XZ_DEC_BCJ #ifdef XZ_DEC_BCJ
xz_dec_bcj_end(s->bcj); xz_dec_bcj_end(s->bcj);
#endif #endif