aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2024-04-28 00:27:01 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2024-06-07 21:42:26 +0200
commit840f2bc18eddd72fa886aec30efc82991b920c45 (patch)
tree7e5840d6ec999c7c158c1cf04b784cf1d522b780
parentd9b9fc4be26014eb7221d9bbc297a5323d5ad40b (diff)
downloadffmpeg-840f2bc18eddd72fa886aec30efc82991b920c45.tar.gz
fftools/ffmpeg_mux_init: Free pts on error
Fixes: CID1538863 Resource leak Sponsored-by: Sovereign Tech Fund Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r--fftools/ffmpeg_mux_init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fftools/ffmpeg_mux_init.c b/fftools/ffmpeg_mux_init.c
index 8797265145..b1cb6cf7bd 100644
--- a/fftools/ffmpeg_mux_init.c
+++ b/fftools/ffmpeg_mux_init.c
@@ -3025,7 +3025,7 @@ static int parse_forced_key_frames(void *log, KeyframeForceCtx *kf,
if (nb_ch > INT_MAX - size ||
!(pts = av_realloc_f(pts, size += nb_ch - 1,
sizeof(*pts))))
- return AVERROR(ENOMEM);
+ goto fail;
if (p[8]) {
ret = av_parse_time(&t, p + 8, 1);