1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-01-29 22:00:58 +02:00
FFmpeg/libavcodec
Linjie Fu 8f6e651833 lavc/qsvenc: Fix the memory leak for enc_ctrl.Payload
frame->enc_ctrl.Payload is malloced in get_free_frame, directly memset
the whole structure of enc_ctrl to zero will cause the memory leak for
enc_ctrl.Payload.

frame->enc_ctrl as a structure will be malloc and init to zero by calling
frame = av_mallocz(sizeof(*frame)), so the memset is redundant and can
be removed.

Signed-off-by: Linjie Fu <linjie.fu@intel.com>
Signed-off-by: Zhong Li <zhong.li@intel.com>
2019-05-22 22:16:21 +08:00
..
2019-04-11 11:58:34 +02:00
2019-04-19 14:01:04 +02:00
2019-04-13 18:10:11 +02:00
2019-05-12 14:17:35 +08:00
2019-04-13 18:10:11 +02:00
2019-04-21 19:43:14 +02:00
2019-05-06 23:58:34 +02:00
2019-04-27 12:33:08 +02:00
2019-03-31 23:35:00 +02:00
2019-04-13 18:10:11 +02:00
2019-05-07 11:00:19 +08:00
2019-04-03 23:00:15 +08:00
2019-03-31 18:39:58 +02:00
2019-05-02 15:36:16 +02:00
2019-05-02 15:36:16 +02:00