Skip to content

Commit 443717f

Browse files
committed
Fix closing driver library in context destructor
Loop over zeDrivers (instead of allDrivers) vector in order to free driver libraries. Using allDrivers may not always work since if there's more than one driver discovered, drivers in allDrivers vector have null handles.
1 parent b313227 commit 443717f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

source/loader/ze_loader.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -824,7 +824,7 @@ namespace loader
824824
}
825825
}
826826

827-
for( auto& drv : allDrivers )
827+
for( auto& drv : zeDrivers )
828828
{
829829
if (drv.handle) {
830830
auto free_result = FREE_DRIVER_LIBRARY( drv.handle );

0 commit comments

Comments
 (0)