You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user