From e567d0637730203d4ee6529dba470f69d54a0f42 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 2 May 2020 17:39:18 +0200 Subject: test: fix some idiotic UB --- test/scale_zimg.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/scale_zimg.c b/test/scale_zimg.c index e4ab1caa05..5fcea20d45 100644 --- a/test/scale_zimg.c +++ b/test/scale_zimg.c @@ -33,9 +33,6 @@ static void run(struct test_ctx *ctx) repack_test_run(stest); - talloc_free(stest); - talloc_free(zimg); - FILE *f = test_open_out(ctx, "zimg_formats.txt"); init_imgfmts_list(); for (int n = 0; n < num_imgfmts; n++) { @@ -51,6 +48,9 @@ static void run(struct test_ctx *ctx) assert_text_files_equal(stest->ctx, "zimg_formats.txt", "zimg_formats.txt", "This can fail if FFmpeg/libswscale adds or removes pixfmts."); + + talloc_free(stest); + talloc_free(zimg); } const struct unittest test_repack_zimg = { -- cgit v1.2.3