d3d12: Fix memory leaks on error paths in d3d12_context_create.
Fix defect reported by Coverity Scan. Resource leak (RESOURCE_LEAK) leaked_storage: Variable ctx going out of scope leaks the storage it points to. Fixes: 2ea15cd6 ("d3d12: introduce d3d12 gallium driver") Signed-off-by: Vinson Lee <email@example.com>
Showing with 5 additions and 1 deletion