From 59a35fe1f63df1451dec6663dcca3451b16c662d Mon Sep 17 00:00:00 2001 From: James Almer Date: Sat, 27 Oct 2018 00:12:30 -0300 Subject: [PATCH] tests/api-h264-slice-test: use the correct function to free the AVHashContext Fixes memleaks. Signed-off-by: James Almer --- tests/api/api-h264-slice-test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/api/api-h264-slice-test.c b/tests/api/api-h264-slice-test.c index 1d37a85d95..57e7dc79c3 100644 --- a/tests/api/api-h264-slice-test.c +++ b/tests/api/api-h264-slice-test.c @@ -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); } }