Fixes: CID1538863 Resource leak
Unified · Split
| @@ -3025,7 +3025,7 @@ static int parse_forced_key_frames(void *log, KeyframeForceCtx *kf, · 3024 unmodified lines | |||
| 3025 | if (nb_ch > INT_MAX - size || | 3025 | if (nb_ch > INT_MAX - size || |
| 3026 | !(pts = av_realloc_f(pts, size += nb_ch - 1, | 3026 | !(pts = av_realloc_f(pts, size += nb_ch - 1, |
| 3027 | sizeof(*pts)))) | 3027 | sizeof(*pts)))) |
| 3028 | return AVERROR(ENOMEM); | 3028 | goto fail; |
| 3029 | 3029 | ||
| 3030 | if (p[8]) { | 3030 | if (p[8]) { |
| 3031 | ret = av_parse_time(&t, p + 8, 1); | 3031 | ret = av_parse_time(&t, p + 8, 1); |