cmdutils_opencl: fix resource_leak cid 1396852
authorSteven Liu <lq@chinaffmpeg.org>
Thu, 12 Jan 2017 23:54:49 +0000 (07:54 +0800)
committerSteven Liu <lq@chinaffmpeg.org>
Thu, 12 Jan 2017 23:54:49 +0000 (07:54 +0800)
commitaa7982577c1dee021b72f4256f48d3c030d44e73
treece21a1f2456301387ccdae2c259dcc83558d724e
parent08fdf965c9a176d90cae8232d6e3ac54c5d5c7dd
cmdutils_opencl: fix resource_leak cid 1396852

CID: 1396852
check the devices_list alloc status,
and release the devices_list when alloc devices error

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
cmdutils_opencl.c