Commit 5191917736 for ffmpeg
commit 5191917736cb9ce91413a8213a373297829c482a
Author: Kacper Michajłow <kasper93@gmail.com>
Date: Wed Sep 23 17:21:29 2026 +0200
swresample/tests/swresample: free the contexts
The two contexts and the layouts were never released, which trips leak
checking once the test runs under FATE.
Signed-off-by: Kacper Michajłow <kasper93@gmail.com>
diff --git a/libswresample/tests/swresample.c b/libswresample/tests/swresample.c
index 7a90ad93df..227203a4d6 100644
--- a/libswresample/tests/swresample.c
+++ b/libswresample/tests/swresample.c
@@ -400,5 +400,9 @@ int main(int argc, char **argv){
fprintf(stderr, "\n");
}
+ swr_free(&forw_ctx);
+ swr_free(&backw_ctx);
+ av_channel_layout_uninit(&in_ch_layout);
+ av_channel_layout_uninit(&out_ch_layout);
return 0;
}