From dd521a4afb805c995108c1aba844c47b8c50e7d0 Mon Sep 17 00:00:00 2001 From: Szymon Janc Date: Wed, 15 Sep 2010 00:13:09 +0200 Subject: [PATCH] * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_end): Fix memory leak. --- ChangeLog | 4 ++++ grub-core/lib/xzembed/xz_dec_stream.c | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/ChangeLog b/ChangeLog index 0ec383b3a..0b043ccd5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2010-09-15 Szymon Janc + + * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_end): Fix memory leak. + 2010-09-14 Vladimir Serbinenko Fix incorrect echo options handling. diff --git a/grub-core/lib/xzembed/xz_dec_stream.c b/grub-core/lib/xzembed/xz_dec_stream.c index ff26f5119..071ca8deb 100644 --- a/grub-core/lib/xzembed/xz_dec_stream.c +++ b/grub-core/lib/xzembed/xz_dec_stream.c @@ -853,6 +853,10 @@ void xz_dec_end(struct xz_dec *s) { if (s != NULL) { 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 xz_dec_bcj_end(s->bcj); #endif