[FFmpeg-cvslog] tests/api-h264-slice-test: use the correct function to free the AVHashContext

James Almer git at videolan.org
Sat Oct 27 06:16:07 EEST 2018


ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Sat Oct 27 00:12:30 2018 -0300| [59a35fe1f63df1451dec6663dcca3451b16c662d] | committer: James Almer

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

Fixes memleaks.

Signed-off-by: James Almer <jamrial at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=59a35fe1f63df1451dec6663dcca3451b16c662d
---

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



More information about the ffmpeg-cvslog mailing list