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

Fixes memleaks.

Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
James Almer 2018-10-27 00:12:30 -03:00
parent 0e9c01fd87
commit 59a35fe1f6
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}
}