History

fftools/ffmpeg_mux_init: Free pts on error

Fixes: CID1538863 Resource leak

Michael Niedermayer committed 2 years ago

Commit 840f2bc1 parent d9b9fc41 file · +1 −1Browse files

Unified · Split

fftools/ffmpeg_mux_init.c+1−1
@@ -3025,7 +3025,7 @@ static int parse_forced_key_frames(void *log, KeyframeForceCtx *kf, · 3024 unmodified lines
30253025 if (nb_ch > INT_MAX - size ||
30263026 !(pts = av_realloc_f(pts, size += nb_ch - 1,
30273027 sizeof(*pts))))
3028− return AVERROR(ENOMEM);
3028+ goto fail;
30293029
30303030 if (p[8]) {
30313031 ret = av_parse_time(&t, p + 8, 1);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t