History

avcodec/vulkan_encode_hevc: Fix memleak on error

Andreas Rheinhardt committed 1 year ago

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

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

Unified · Split

libavcodec/vulkan_encode_h265.c+4−2
@@ -1218,7 +1218,7 @@ static int parse_feedback_units(AVCodecContext *avctx, · 1217 unmodified lines
1218 if (err < 0) {1218 if (err < 0) {
1219 av_log(avctx, AV_LOG_ERROR, "Unable to parse feedback units, bad drivers: %s\n",1219 av_log(avctx, AV_LOG_ERROR, "Unable to parse feedback units, bad drivers: %s\n",
1220 av_err2str(err));1220 av_err2str(err));
1221 return err;1221 goto fail;
1222 }1222 }
1223 1223
1224 if (sps_override) {1224 if (sps_override) {
@@ -1246,10 +1246,12 @@ static int parse_feedback_units(AVCodecContext *avctx, · 21 unmodified lines
1246 }1246 }
1247 }1247 }
1248 1248
1249 err = 0;
1250fail:
1249 ff_cbs_fragment_free(&au);1251 ff_cbs_fragment_free(&au);
1250 ff_cbs_close(&cbs);1252 ff_cbs_close(&cbs);
1251 1253
1252 return 0;1254 return err;
1253}1255}
1254 1256
1255static int init_base_units(AVCodecContext *avctx)1257static 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