History

avcodec/vulkan_encode_h264: Fix memleak on error

Andreas Rheinhardt committed 1 year ago

Commit 70fa44d1 parent b18aaf21 file · +4 −2Browse files

Showing the changes to libavcodec (1 of 1 file). Show all

Unified · Split

libavcodec/vulkan_encode_h264.c+4−2
@@ -1065,7 +1065,7 @@ static int parse_feedback_units(AVCodecContext *avctx, · 1064 unmodified lines
1065 if (err < 0) {1065 if (err < 0) {
1066 av_log(avctx, AV_LOG_ERROR, "Unable to parse feedback units, bad drivers: %s\n",1066 av_log(avctx, AV_LOG_ERROR, "Unable to parse feedback units, bad drivers: %s\n",
1067 av_err2str(err));1067 av_err2str(err));
1068 return err;1068 goto fail;
1069 }1069 }
1070 1070
1071 /* If PPS has an override, just copy it entirely. */1071 /* If PPS has an override, just copy it entirely. */
@@ -1079,10 +1079,12 @@ static int parse_feedback_units(AVCodecContext *avctx, · 7 unmodified lines
1079 }1079 }
1080 }1080 }
1081 1081
1082 err = 0;
1083fail:
1082 ff_cbs_fragment_free(&au);1084 ff_cbs_fragment_free(&au);
1083 ff_cbs_close(&cbs);1085 ff_cbs_close(&cbs);
1084 1086
1085 return 0;1087 return err;
1086}1088}
1087 1089
1088static int init_base_units(AVCodecContext *avctx)1090static int init_base_units(AVCodecContext *avctx)

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