From f449cd8926c8be247e47fb8dc01fecbec0b3eb92 Mon Sep 17 00:00:00 2001 From: Hyunjun Ko Date: Wed, 10 Aug 2016 12:24:23 +0900 Subject: [PATCH] gen8_mfc: fix memory leak during vp8 encoding This fixes https://bugs.freedesktop.org/show_bug.cgi?id=97272 --- src/gen8_mfc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gen8_mfc.c b/src/gen8_mfc.c index 1f8e57b..2f0e7ae 100644 --- a/src/gen8_mfc.c +++ b/src/gen8_mfc.c @@ -3585,6 +3585,7 @@ static void vp8_enc_frame_header_binarize(struct encode_state *encode_state, frame_header_buffer = (unsigned char *)mfc_context->vp8_state.frame_header_bo->virtual; assert(frame_header_buffer); memcpy(frame_header_buffer, mfc_context->vp8_state.vp8_frame_header, (mfc_context->vp8_state.frame_header_bit_count + 7) / 8); + free(mfc_context->vp8_state.vp8_frame_header); dri_bo_unmap(mfc_context->vp8_state.frame_header_bo); } -- 2.7.4