Skip to content

Commit d697024

Browse files
authored
Fix a leak in pi_unified_runtime.cpp. (#12589)
`LoaderConfig` is created and stored in a local pointer and never released when done using, causing it to be leaked. This patch releases the `LoaderConfig` when finished using it.
1 parent 5310b20 commit d697024

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sycl/plugins/unified_runtime/pi_unified_runtime.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1349,6 +1349,7 @@ __SYCL_EXPORT pi_result piPluginInit(pi_plugin *PluginInit) {
13491349
}
13501350

13511351
HANDLE_ERRORS(urLoaderInit(0, LoaderConfig));
1352+
HANDLE_ERRORS(urLoaderConfigRelease(LoaderConfig));
13521353

13531354
uint32_t NumAdapters;
13541355
HANDLE_ERRORS(urAdapterGet(0, nullptr, &NumAdapters));

0 commit comments

Comments
 (0)