]> git.sesse.net Git - ffmpeg/commitdiff
lavu/hwcontext_qsv: fix the memory leak
authorLinjie Fu <linjie.fu@intel.com>
Fri, 26 Jul 2019 08:00:24 +0000 (16:00 +0800)
committerZhong Li <zhong.li@intel.com>
Tue, 30 Jul 2019 00:05:01 +0000 (08:05 +0800)
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>
libavutil/hwcontext_qsv.c

index 59e4ed91571e1600de955b7ba024232f36d0759e..0329a81ec372692393391d92d541efefa7bb0653 100644 (file)
@@ -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;