Commit 59a35fe1 authored by James Almer's avatar James Almer

tests/api-h264-slice-test: use the correct function to free the AVHashContext

Fixes memleaks.
Signed-off-by: 's avatarJames Almer <jamrial@gmail.com>
parent 0e9c01fd
......@@ -103,7 +103,7 @@ static void decode(AVCodecContext *dec_ctx, AVFrame *frame,
frame_cnt, frame_cnt,
(frame->width * frame->height + 2 * (frame->height >> desc->log2_chroma_h) * (frame->width >> desc->log2_chroma_w)), sum);
frame_cnt += 1;
av_free(hash);
av_hash_freep(&hash);
av_free(sum);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment