Skip to content
Commit 6c056eec authored by Qiang Yu's avatar Qiang Yu Committed by Emil Velikov
Browse files

drm: fix drmFreeDevices memory leak on multi GPU setups



When in multi GPU case, devices array may have some
NULL "hole" in between two devices. So check all
array elements and free non-NULL device.

Signed-off-by: default avatarQiang Yu <Qiang.Yu@amd.com>
Reviewed-by: default avatarEmil Velikov <emil.l.velikov@gmail.com>
parent 3c20893d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment