aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2018-10-27 00:12:30 -0300
committerJames Almer <jamrial@gmail.com>2018-10-27 00:12:30 -0300
commit59a35fe1f63df1451dec6663dcca3451b16c662d (patch)
tree7e587e13cee451612dddf1f211a3a7aae7ec1da4 /tests
parent0e9c01fd87ae6cc5ba3474810eaa3c58499615ce (diff)
downloadffmpeg-59a35fe1f63df1451dec6663dcca3451b16c662d.tar.gz
tests/api-h264-slice-test: use the correct function to free the AVHashContext
Fixes memleaks. Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/api/api-h264-slice-test.c2
1 files changed, 1 insertions, 1 deletions
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);
}
}