mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
lavu/hwcontext_qsv: fix the memory leak
av_dict_free child_device_opts to fix the memory leak. Signed-off-by: Linjie Fu <linjie.fu@intel.com> Signed-off-by: Zhong Li <zhong.li@intel.com>
This commit is contained in:
parent
502aff91a7
commit
b3b7523feb
@ -1240,6 +1240,8 @@ static int qsv_device_create(AVHWDeviceContext *ctx, const char *device,
|
||||
|
||||
ret = av_hwdevice_ctx_create(&priv->child_device_ctx, child_device_type,
|
||||
e ? e->value : NULL, child_device_opts, 0);
|
||||
|
||||
av_dict_free(&child_device_opts);
|
||||
if (ret < 0)
|
||||
return ret;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user