diff options
author | Linjie Fu <linjie.fu@intel.com> | 2019-04-15 21:23:18 +0800 |
---|---|---|
committer | Zhong Li <zhong.li@intel.com> | 2019-05-22 22:16:21 +0800 |
commit | 8f6e65183354d1d402ae80c71cba2759fe152018 (patch) | |
tree | 6dca5cbef2b5186f08ecc24716cc2b1574987bf6 /libavcodec/sonic.c | |
parent | 82ccb9cba9a7bd530ba2070c90f03d0fde9af1bd (diff) | |
download | ffmpeg-8f6e65183354d1d402ae80c71cba2759fe152018.tar.gz |
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>
Diffstat (limited to 'libavcodec/sonic.c')
0 files changed, 0 insertions, 0 deletions