Skip to content

Commit cacc769

Browse files
committed
fix
1 parent a61fe8e commit cacc769

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

source/loader/layers/sanitizer/asan_interceptor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -837,7 +837,7 @@ ContextInfo::~ContextInfo() {
837837
getContext()->urDdiTable.Context.pfnRelease(Handle);
838838
assert(Result == UR_RESULT_SUCCESS);
839839

840-
if (getOptions().DetectLeaks) {
840+
if (getContext()->interceptor->getOptions().DetectLeaks) {
841841
// check memory leaks
842842
std::vector<AllocationIterator> AllocInfos =
843843
getContext()->interceptor->findAllocInfoByContext(Handle);

source/loader/layers/sanitizer/asan_interceptor.hpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,7 @@ class SanitizerInterceptor {
291291
std::shared_ptr<DeviceInfo> &DeviceInfo);
292292

293293
private:
294+
AsanOptions m_Options;
294295
std::unordered_map<ur_context_handle_t, std::shared_ptr<ContextInfo>>
295296
m_ContextMap;
296297
ur_shared_mutex m_ContextMapMutex;
@@ -316,8 +317,6 @@ class SanitizerInterceptor {
316317

317318
std::unique_ptr<Quarantine> m_Quarantine;
318319

319-
AsanOptions m_Options;
320-
321320
std::unordered_set<ur_adapter_handle_t> m_Adapters;
322321
ur_shared_mutex m_AdaptersMutex;
323322
};

0 commit comments

Comments
 (0)