mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2026-06-11 08:13:06 +00:00
swscale/tests/sws_ops: fix uops leak on translate success path
Fall through to the existing cleanup so uops is freed on both the success and failure paths. Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
committed by
Niklas Haas
co-authored by
Niklas Haas
parent
a5ee6ff720
commit
d3a56ed37b
@@ -61,7 +61,7 @@ static int print_ops(SwsContext *ctx, const SwsOpList *ops, SwsCompiledOp *out)
|
||||
|
||||
*out = (SwsCompiledOp) {0}; /* dummy value, will be immediately freed */
|
||||
pass_idx++;
|
||||
return 0;
|
||||
ret = 0;
|
||||
|
||||
fail:
|
||||
ff_sws_uop_list_free(&uops);
|
||||
|
||||
Reference in New Issue
Block a user