mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
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:
parent
0e9c01fd87
commit
59a35fe1f6
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user