forked from FFmpeg/FFmpeg
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
1 changed files with 2 additions and 0 deletions
|
@ -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,
|
ret = av_hwdevice_ctx_create(&priv->child_device_ctx, child_device_type,
|
||||||
e ? e->value : NULL, child_device_opts, 0);
|
e ? e->value : NULL, child_device_opts, 0);
|
||||||
|
|
||||||
|
av_dict_free(&child_device_opts);
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue