We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9755f6f commit 2e60f3aCopy full SHA for 2e60f3a
src/dbg/memory.cpp
@@ -183,7 +183,9 @@ void MemUpdateMap()
183
}
184
185
186
- BridgeFree(threadList.list);
+ // Only free thread data if it was allocated
187
+ if (threadList.list)
188
+ BridgeFree(threadList.list);
189
190
// Convert the vector to a map
191
EXCLUSIVE_ACQUIRE(LockMemoryPages);
src/dbg/thread.cpp
@@ -76,6 +76,7 @@ void ThreadGetList(THREADLIST* List)
76
// Also assume BridgeAlloc zeros the returned buffer.
77
//
78
List->count = (int)threadList.size();
79
+ List->list = nullptr;
80
81
if (List->count <= 0)
82
return;
0 commit comments