]> git.sesse.net Git - ffmpeg/commitdiff
tests/api-h264-slice-test: use the correct function to free the AVHashContext
authorJames Almer <jamrial@gmail.com>
Sat, 27 Oct 2018 03:12:30 +0000 (00:12 -0300)
committerJames Almer <jamrial@gmail.com>
Sat, 27 Oct 2018 03:12:30 +0000 (00:12 -0300)
Fixes memleaks.

Signed-off-by: James Almer <jamrial@gmail.com>
tests/api/api-h264-slice-test.c

index 1d37a85d9533a89fa9e6c2450cca7c34a2b513bc..57e7dc79c3dc183146a524755c1aeeec5fce6ca0 100644 (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);
     }
 }